当前位置: 代码迷 >> 综合 >> mysql允许远程访问
  详细解决方案

mysql允许远程访问

热度:43   发布时间:2024-02-10 13:35:51.0
grant all on *.* to abc_user@'%' identified by '123456' with grant option; 
flush privileges;

 

将--bind-address=127.0.0.1改为--bind-address=0.0.0.0

执行命令

/usr/bin/mysqld_safe --bind-address=0.0.0.0 --datadir=/var/lib/mysql --user=root --log-error=mysql --pid_file=mysql.pid

 

 

然后再navicatMySql登录 即可

 

  相关解决方案