Solution to Navicat Premier remote connection to MySQL error 10038

Solution to Navicat Premier remote connection to MySQL error 10038

Remote connection to MySQL fails, there may be the following reasons:

1. Young man/girl, please make sure you have entered your IP address correctly! !

2. Network or firewall issues

1) Troubleshoot network problems

Use the command: ping 192.168.1.1 to check whether the network request has timed out.

Receive data normally and proceed to the next step of investigation

2) Check whether the cloud server firewall is blocking it.

Use the command: telnet 192.168.1.1 3306. If the connection fails, there are two reasons.

a) Check whether the cloud server port is open.

Open status (I use Alibaba Cloud):

Open port configuration:

If the cloud server port is already open. But the server's port 3306 is still not accessible. Continue reading below.

b) Check the server to see if the firewall is turned on.

# systemctl status firewalld

My server is not open, so there is no such thing as being blocked by the firewall.

If the firewall is enabled and telnet still fails, use netstat to check the status of port 3306:

# netstat -talnp 3306tcp6 0 0 :::3306 :::* LISTEN 4591/mysqld (normal situation)

If the netstat 3306 port does not show the above situation. Then you need to start the MySQL service on your local machine and connect offline again.

3. Check user access rights

1) Enter msyql

2) View user access rights

As shown in the figure, check whether the Host corresponding to your remote account (User) is %;

If the Host corresponding to the remote account is 127.0.0.1/localhost, then this user can only access the local machine. Other machines have no permission to access with this user account. The host must be changed to %, indicating that all machines are allowed to access.

Modify the command as follows:

mysql> update user set host='%' where user='the account you want to modify';
##After the modification is successful, remember to refresh the permissions mysql> flush privileges;

Finally, check the permissions and connect remotely.

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • 4 solutions to mysql import csv errors
  • Solve the problem of error 10038 when connecting to MySQL remotely in Navicat
  • Analysis on how to solve the problem of Navicat Premium connecting to MySQL 8.0 and reporting error "1251"
  • How to skip errors in mysql master-slave replication
  • Problems and solutions of error 08001 when linking to MySQL in IDEA and no table display after successful connection
  • Mysql table creation foreign key error solution
  • MySQL database import and export data error solution example explanation

<<:  Solve the problem of Tomcat10 Catalina log garbled characters

>>:  Summary of three ways to create new elements

Recommend

How to force vertical screen on mobile pages

I recently wrote a mobile page at work, which was...

Docker uses root to enter the container

First run the docker container Run the command as...

VMware Workstation 15 Pro Installation Guide (for Beginners)

01. VMware Workstation Pro 15 Download Download: ...

mysql is not an internal command error solution

The error "mysql is not an internal command&...

The difference between docker run and start

The difference between run and start in docker Do...

Understanding JSON (JavaScript Object Notation) in one article

Table of contents JSON appears Json structure Jso...

The most detailed method to install docker on CentOS 8

Install Docker on CentOS 8 Official documentation...

How to build DockerHub yourself

The Docker Hub we used earlier is provided by Doc...

uniapp Sample code for implementing global sharing of WeChat mini-programs

Table of contents Create a global shared content ...

Basic knowledge of website design: newbies please read this

Now many people are joining the ranks of website ...

Native js to implement 2048 game

2048 mini game, for your reference, the specific ...

Introduction to possible problems after installing Tomcat

1. Tomcat service is not open Enter localhost:808...

CSS perfectly solves the problem of front-end image deformation

I saw an article in Toutiao IT School that CSS pe...