In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to solve the problem that Mysql can not connect to the server from the client". The content in the article is simple and clear, and it is easy to learn and understand. Please follow Xiaobian's train of thought to study and learn "how to solve the problem that Mysql can not connect to the server from the client".
The company wants to use Mysql to do a test, start to build a local Mysql in their own local program and then connect, have not encountered the problem of connection.
This time the database is on the server, and the connection from the local client is denied.
The error reported is
ERROR 1130: Host '192.168.5.3' is not allowed to connect to this MySQL server
Www.2cto.com
After checking the information, it is found that this problem is generally encountered. Mysql database is different from other databases. It is necessary to set permissions to control which machine can access the database and which tables can be accessed.
So you have to log on to the server.
C:\ Documents and Settings\ Administrator >-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' 123with grant
-> option
Query OK, 0 rows affected (0.00 sec)
It means to give all the resources on the server to the root user.% represents a different IP.
You need to pay attention here to bring the password with you. Log in with password 123.
Mysql > FLUSH PRIVILEGES
Query OK, 0 rows affected (0.00 sec)
Finally, you need to refresh the permissions.
This connects to the server from the client of the local 192.168.5.3 IP.
Thank you for your reading, the above is the content of "how to solve the problem that Mysql can not connect to the server from the client". After the study of this article, I believe you have a deeper understanding of how to solve the problem that Mysql can not connect to the server from the client. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.