問題描述:在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.
新聞熱點
疑難解答