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

Teach you how to implement a react from html

What is React React is a simple javascript UI lib...

Cause Analysis and Solution of I/O Error When Deleting MySQL Table

Problem phenomenon I recently used sysbench to te...

React dva implementation code

Table of contents dva Using dva Implementing DVA ...

Detailed explanation of JavaScript prototype and examples

Table of contents The relationship between the co...

Detailed explanation of Linux netstat command

Table of contents Linux netstat command 1. Detail...

How to configure MySQL master-slave replication under Windows

MySQL master-slave replication allows data from o...

How to adjust the log level of nginx in Docker

Table of contents Intro Nginx Dockerfile New conf...

Detailed explanation of InnoDB storage files in MySQL

Physically speaking, an InnoDB table consists of ...

Introducing icons by implementing custom components based on Vue

Preface In project development, there are many wa...

How to create a view in MySQL

Basic syntax You can create a view using the CREA...

Detailed explanation of how to quickly build a blog website using Docker

Table of contents 1. Preparation 2. Deployment Pr...

...

Bug of Chinese input garbled characters in flex program Firefox

Chinese characters cannot be input in lower versio...

How to uninstall MySQL 5.7 on CentOS7

Check what is installed in mysql rpm -qa | grep -...

Element Plus implements Affix

Table of contents 1. Component Introduction 2. So...