Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the reason why navicat cannot connect to the server?

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail the reason why navicat can not connect to the server. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

1. First, make sure that your linux has turned off the firewall

If the company server firewall is more important can not be turned off, then the trouble, you need to configure the properties under the firewall configuration file.

If it can't be solved, please read on.

2. If it is a CVM, please confirm whether port 3306 has been opened to the public.

Here, take Ali CVM as an example. The default port of Ali Cloud's server is not open to the public. If you want to provide external access, you need to manually add rules in the security group. For more information, please see the official document: https://helpcdn.aliyun.com/document_detail/25471.html?spm=5176.doc25468.2.4.RfJyPU.

If it can't be solved, please read on.

3. Insufficient authority

Prompt error: Warning: Using a password on the command line interface can be insecure.

ERROR 1130 (HY000): Host '192.168.3.134' is not allowed to connect to this MySQL server

Solution:

Enter the mysql database command line

2. Enter use mysql

3. Set the root account password to 123456 to access the mysql server with any ip

Enter grant all privileges on *. * to root@ "%" identified by "password"

This is equivalent to giving IP-xxx.xxx.xxx.xxx all permissions, including remote access, and the% percent sign means that any IP is allowed to access the database.

4. Then enter flush privileges

Restart MySQL on the Linux server

This is the end of the article on "the reason why navicat cannot connect to the server". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report