Navigate not connected to centos7+mariadb problem

Source: Internet
Author: User

A problem was encountered when linking the database. Mac navicat link times wrong can ' t connect to MySQL server on ' xx.xx.xx.xx ' (61).

PS. Win version Navicat error can ' t connect to MySQL server on ' xx.xx.xx.xx ' (10038)

Where xx.xx.xx.xx is the IP address.

1. See if the user has remote login permissions

Select Host,user from Mysql.user;

Dbuser is allowed to log on from other servers.

2. Check if MySQL Server is listening on port 3306

===

Execute command

NETSTAT-LNP |grep MySQL

If there is no 3306 port listening or just listening localhost (0.0.0.0 is listening for all), my.cnf add the following line

Bind-address = 0.0.0.0

3. If the server is CentOS7, add the MySQL service to the firewall

===

Execute command

Firewall-cmd--zone=public--permanent--add-service=mysql

Returns success. And then continue to execute

Systemctl Restart Firewalld

My reboot firewall will be able to access it normally.

Navigate not connected to centos7+mariadb problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.