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 if the database ip in navicat cannot be connected?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

This article mainly introduces the navicat database ip can not connect how to do, the article is very detailed, has a certain reference value, interested friends must read it!

We sometimes encounter this situation when using navicat. We can connect with localhost, but when using ip address, navicat will report an error and fail to connect.

Introduction to the question:

1. Localhost connection success:

2. The connection using ip is not successful:

Solution:

Enter mysql under windows:

C:\ WINDOWS\ system32 > net start mysqlC:\ WINDOWS\ system32 > mysql-uroot-p123456

123456 after PS:-p is the password of the database, pay attention to modify it.

Enter the following command under the mysql command line:

Mysql > use mysql

Give all ip remote connection permissions with the username root:

Mysql > update user set host='%'where user='root'

Update the configuration:

Mysql > flush privileges

After that, you can connect and manipulate the database remotely using tools such as navicat.

The above is all the contents of the article "what to do if the database ip in navicat is not connected". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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