遠程鏈接MySQL, 10038問題

ubuntu server下安裝了MySQL 5.5數據庫,而後在windows下經過Navicat for MySQL鏈接時,出現 Can't connect to mysql server on xxx.xxx.xxx.xxx(10038) 的問題。mysql

解決方案以下:sql

一、受權數據庫

mysql>grant all privileges on *.*  to  'root'@'%'  identified by 'youpassword'  with grant option;
ubuntu

mysql>flush privileges;windows

二、修改/etc/mysql/my.confide

找到bind-address = 127.0.0.1這一行spa

改成bind-address = 0.0.0.0便可orm

相關文章
相關標籤/搜索