1. 程式人生 > >mysql 客戶端服務

mysql 客戶端服務

Navicat MySQL連線Linux下MySQL的問題解決方案

Error1: 2003:Can't connect to MySQL server on 'localhost' 

解決方法:關閉Linux的防火牆功能。 

Linux程式碼 

 

  1. #chkconfig iptables off  
  2. #reboot  


Error2: 1130 - Host'ClientIP' is not allowed to connect to this MySQL server 

解決方法:使用root使用者登陸Linux,更改容許登陸的IP地址範圍。 

Mysql程式碼 

 

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


這段指令容許所有用root使用者輸入密碼登陸該mysql server,如果將'%' 換乘'192.168.1.124' ,那麼只有'192.168.1.124'的主機可以登陸。 

現在重新用Navicat連線Linux mysql 便可以成功了。

下載連結如下(裡面有破解碼)

https://pan.baidu.com/s/1nvIIOad

使用者名稱隨意,有下在面的KEY就可以了
NAVN-LNXG-XHHX-5NOO