修改 root 的密码
alter user 'root'@'localhost' indentified by '111111';
-- 解决 cache_sha2_password 问题
alter user 'test'@'%' indentified WITH mysql_native_password by '111111';
flush privileges;
创建用户并设置权限
CREATE USER 'test'@'%' IDENTIFIED BY '111111';
grant all privileges on *.* to test@% ;
flush privileges;