Ubuntu下MySQL“root”用户远程登录配置
1.进入mysql命令行执行:
mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '你的密码' WITH GRANT OPTION;
mysql>FLUSH PRIVILEGES;
2.然后修改mysql配置文件:vim /etc/mysql/mysql.conf.d/mysqld.cnf,找到并将bind-address =127.0.0.1(大概在44行)注释掉:
#bind-address
原创
2021-09-27 16:02:08 ·
285 阅读 ·
1 评论