新安裝mysql 第三方工具串連不上問題,mysql第三方

來源:互聯網
上載者:User

新安裝mysql 第三方工具串連不上問題,mysql第三方
Mysql從用戶端串連伺服器連不上的問題 公司要用Mysql做一個測試,開始在自己的本地建一個Mysql資料庫自己本地的程式再連上去,沒有遇到過串連不上的問題。
這次資料庫在伺服器上,從本地用戶端串連就是被拒絕。 
 報的錯誤為 ERROR 1130: Host ’192.168.5.3’ is not allowed to connect to this MySQL server   www.2cto.com  查過資料後發現這個問題,一般都會遇到,Mysql資料庫跟其他資料庫不一樣,需要設定許可權可以控制哪台機器能訪問資料庫,能訪問哪些表。 所以就要登上伺服器。 C:\Documents and Settings\Administrator>mysql -h localhost -u root -p Enter password: *** Welcome to the MySQL monitor.  Commands end with ; or \g. Your MySQL connection id is 5 Server version: 5.1.43-community MySQL Community Server (GPL)  Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.   www.2cto.com  mysql> grant all privileges on *.* to root@'%' identified by '123' with grant     -> option; Query OK, 0 rows affected (0.00 sec) 意思就是將伺服器上的所有資源都給root使用者權限,%代表來自不同的IP 這裡需要注意一下要把密碼也要帶上。通過密碼123登入。 mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) 最後要重新整理下許可權。  這樣就從本地192.168.5.3這個IP的用戶端串連到伺服器上了
我用工具怎串連不上mysql資料庫的?

不是提示了麼:不是自己開的服務端不能串連。

試著用mysql的命令列串連一下,根據相關的提示進行處理。一般要開放所需要的連接埠,設定使用者的遠端連線許可權就可以串連了。如果命令列可以串連,工具應該也是可以的。

如果只是為了管理資料庫,可以裝個web的管理放伺服器,也挺方便的。
 
服務上安裝網站時,顯示Mysql串連不上??

連接埠通不通3306預設的。。。。能ping通?

剩下就是 你用root 那麼你伺服器上 對於root賦予的許可權嘞?還有指定到IP嘞???

估計是ip 。許可權 就全打鉤就好
 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.