博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
MYSQL (客户端)远程连接报10038错误的三行代码
阅读量:7160 次
发布时间:2019-06-29

本文共 398 字,大约阅读时间需要 1 分钟。

保证能如命令行进入MYSQL

mysql> use mysql;GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root'WITH GRANT OPTION

刷新权限

flush privileges;

修改配置文件

/etc/mysql/my.conf或者在

/etc/mysql/mysql.conf.d
注释掉此行

#bind-address           = 127.0.0.1

如果找不到bind-address

root@php56:/etc/mysql# find ./ -name "*.cnf" |xargs grep "bind-address"./mysql.conf.d/mysqld.cnf:bind-address        = 127.0.0.1root@php56:/etc/mysql#

转载地址:http://mltwm.baihongyu.com/

你可能感兴趣的文章