How to connect to MySQL remotely through Navicat

How to connect to MySQL remotely through Navicat

Using Navicat directly to connect via IP will report various errors, such as: Error 1130: Host '192.168.1.80' is not allowed to connect to this MySQL server.

After personal verification, the solution is as follows:

Authorization Act:

1. First use localhost to log in to the database you want to connect to remotely

2. Open the command prompt window and enter the following command:

mysql> grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
Query OK, 0 rows affected

mysql> flush privileges;
Query OK, 0 rows affected

The first sentence is to give the remote connection permissions. You only need to set the connection username and password according to the root and 123456 in the personal database modification statement.

The second sentence is to refresh the database so that the permissions take effect immediately.

3. Generally, you can connect to the database remotely, but sometimes the following error may occur: 2003 - Can't connect to MySQL server on '192.168.1.80'(10038).

This error is that the firewall of the server (the server is Win7 system) blocked your connection. Then you can connect after disabling the firewall.

Use cmd command to connect to the remote database. Do not use any tools to connect to the remote database.

An error was reported in the command line. ERROR 2003 <HY000>: Can't connect to MySQL server on "192.168.1.80" <10060>

The reason for this error is the same as above, it is blocked by the firewall.

After the above steps, friends who use WIN7 to build a local area and remotely connect to the MySQL database on WIN7 can now connect to the database for development normally.

PS: In addition to turning off the WIN7 firewall in the control panel, you also need to turn it off in the service.

Change the property to manual, or disable, and then shut down the service.

The above is the details of how to achieve remote connection of MySQL through Navicat. For more information about MySQL remote connection, please pay attention to other related articles on 123WORDPRESS.COM!

You may also be interested in:
  • Solution to the problem that Navicat cannot remotely connect to MySql server
  • How to solve the 10060 unknow error when Navicat remotely connects to MySQL
  • Navicat remote connection to MySQL implementation steps analysis
  • Detailed steps for Navicat to remotely connect to SQL Server and convert to MySQL
  • Solution to Navicat's inability to remotely connect to MySQL
  • Solution to the problem "MySql database does not support remote connection" when connecting to NaviCat

<<:  Web interview frequently asked questions: the principles and differences between reflow and repaint

>>:  Linux uses stty to display and modify terminal line settings

Recommend

Are the value ranges of int(3) and int(10) the same in mysql

Table of contents Question: answer: Reality: Know...

Zookeeper unauthorized access test problem

Table of contents Preface Detect Zookeeper servic...

Solution to Chinese garbled characters when operating MySQL database in CMD

I searched on Baidu. . Some people say to use the...

Docker starts Redis and sets the password

Redis uses the apline (Alps) image of Redis versi...

MySQL 8.0.19 installation detailed tutorial (windows 64 bit)

Table of contents Initialize MySQL Install MySQL ...

How to choose transaction isolation level in MySQL project

introduction Let's start with our content. I ...

How to deploy HTTPS for free on Tencent Cloud

Recently, when I was writing a WeChat applet, the...

Mysql transaction isolation level principle example analysis

introduction You must have encountered this in an...

Complete step-by-step record of MySQL 8.0.26 installation and uninstallation

Table of contents Preface 1. Installation 1. Down...

Solution to the conflict between Linux kernel and SVN versions

Phenomenon The system could compile the Linux sys...

Differences in the hr separator between browsers

When making a web page, you sometimes use a dividi...

Running PostgreSQL in Docker and recommending several connection tools

1 Introduction PostgreSQL is a free software obje...

Automatic line breaks in html pre tags

At this time, you can use overflow:auto; (when the...