mysql 设置允许账号远程登录
作者:互联网
1. 登录mysql
mysql -uroot -p (输入密码)
2. 设置允许远程访问
GRANT ALL PRIVILEGES ON *.* TO '账号'@'%' IDENTIFIED BY '密码' WITH GRANT OPTION; 如:GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
3. 刷新权限
FLUSH PRIVILEGES;
标签:OPTION,登录,GRANT,PRIVILEGES,账号,IDENTIFIED,mysql 来源: https://www.cnblogs.com/boye169/p/15670659.html