In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly gives you a brief introduction to the solution to the failure of client connection mysql. You can check the relevant professional terms on the Internet or find some related books to supplement them. We will not dabble here. Let's go straight to the topic. I hope this article on the solution to the failure of client connection mysql can bring you some practical help.
Ensure that there are users who can be linked anywhere
Use the following sql query in Linux
SELECT host, user FROM mysql.user
The query results are as follows
+-+ | host | user | +-+-+ |% | admin | | 127.0.0.1 | admin | | localhost | debian-sys-maint | | localhost | mysql.session | | localhost | mysql.sys | | localhost | root | +-+-+
You need to ensure that the following results exist
+-+ | host | user | +-+-+ |% | admin | +-+-+
If it exists, you can log in using the admin user (from anywhere)
If it does not exist, you can add a corresponding user record and the specific grant command can be found on the official website.
Mysql > grant all on yourdb.* to admin@'%' identified by 'yourpassword'; / / Note that the yourdb and yourpassword here are changed to their own actual values to modify the bind-address in the mysql configuration file
If you are using a virtual machine, you may also need to check the bound ip issues.
Use the following command
Mysqld-- verbose-- help | grep bind-address
The display results are as follows
-- bind-address=name IP address to bind to.bind-address 0.0.0.0
You need to make sure that your bind-address must be 0.0.0.0
The bind address have to be 0.0.0.0 (which means "every IP addresses") to work.
So how do you change the bind-address?
Find your mysqld.cnf file, search bind-address and modify it
In a general Linux, this file is in the / etc/mysql/mysql.conf.d directory
Client connection mysql failure solution will first tell you here, for other related issues you want to know can continue to pay attention to our industry information. Our section will capture some industry news and professional knowledge to share with you every day.
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.