1 先终端登入
2 登录mysql
mysql -u root -p
3 远程登录权限
grant all privileges on *.* to 'root'@'%';
flush privileges;
4 修改用户加密方式
alter user 'root'@'%' identified with mysql_native_password by '123456';
flush privileges;
1 先终端登入
2 登录mysql
mysql -u root -p
3 远程登录权限
grant all privileges on *.* to 'root'@'%';
flush privileges;
4 修改用户加密方式
alter user 'root'@'%' identified with mysql_native_password by '123456';
flush privileges;
文章评论