配置mysql允许root连接

xiaoxiao2021-02-28  61

1.登录mysql

执行命令:Grant all privileges on *.* to 'root'@'%' identified by '111111' with grant option;

2.修改etc/mysql/mysql.conf.d下的

mysqld.cnf文件

bind-address            = 127.0.0.1

修改为

bind-address            = 0.0.0.0

转载请注明原文地址: https://www.6miu.com/read-80684.html

最新回复(0)