The centos system cannot connect to the mysql client

王林
Release: 2020-03-20 14:05:21
Original
2779 people have browsed it

The centos system cannot connect to the mysql client

Question:

centos7 After successfully installing mysql, test the connection service on the client Navicat, prompting 10060, as shown in the following figure:

The centos system cannot connect to the mysql client

The solution is as follows:

1. The service is not started. Check the startup port:

#netstat -nltp
Copy after login

Start the service: (Recommended tutorial: centos usage tutorial )

#service mysqld start
Copy after login

2. Turn off the firewall

Turn off the firewall:

systemctl stop firewalld.service
Copy after login

Disable startup:

systemctl disable firewalld.service
Copy after login

3. Check the configuration file my.cnf to see if it is configured Bind-address = 127.0.0.1 is set and needs to be blocked.

Recommended related video tutorials: linux video tutorial

The above is the detailed content of The centos system cannot connect to the mysql client. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!