问题描述:在Ubuntu安装完MySQL后,使用windows的navicat远程连接时,遇到100038错误。
解决方法: 首先,需要更新mysql数据库user表中连接用户的host字段,把localhost改为%。(UPDATE操作或者grant all PRivileges on . to ‘root’@’%’ identified by ‘youpassWord’ with grant option; flush privileges;) 然后,修改conf文件,mysql5.7版本中路径为:/etc/mysql/mysql.conf.d/mysqld.cnf 找到bind-address = 127.0.0.1这一行 改为bind-address = 0.0.0.0 最后,enjoy it.
新闻热点
疑难解答