When using Navicat to connect to a remote Linux MySQL database, an unknown error 10061 occurs. After setting up the SSH connection, an error 2013 occurs. Local environment: win10 navicat premium MySQL database host environment: Linux version 4.15.0-42-generic (buildd@lgw01-amd64-023) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #45-Ubuntu SMP Thu Nov 15 19:32:57 UTC 2018 mysql Ver 14.14 Distrib 5.7.21, for Linux (x86_64) using EditLine wrapper The fault error is as follows: Solution: 1. Open /etc/mysql/mysql.conf.d/mysqld.cnf file 2. Add a # comment before bind-address=127.0.0.1, or delete this line directly 3. Save and close the mysqld.cnf file, and enter service mysql restart to restart the mysql database At this time, use navicat to reconnect and it will show success. Cause of the problem: By default, MySQL does not allow access from hosts other than the local machine (except SSH). The problem can be solved by modifying the mysqld.cnf file, but modifying the file may cause security issues, so it is recommended to configure the ufw firewall. The above is the detailed explanation of the 10061 unknown fault when Navicat connects to the remote Linux MySQL database. I hope it will be helpful to everyone. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: React + Threejs + Swiper complete code to achieve panoramic effect
1. Set a directory whitelist: Do not set restrict...
In the previous article, we learned about the net...
student.xml <?xml version="1.0" enco...
Table of contents 1. Brief description 2. Steps t...
The method of obtaining the position of the point...
1. When the width of the adjacent floating layer o...
I was working on a pop-up ad recently. Since the d...
Although Microsoft has done a lot of research and ...
In order to save installation time, I used the of...
Table of contents What is NULL Two kinds of NULL ...
When using MySQL 5.7, you will find that garbled ...
Preface Under the influence of some CSS interacti...
ps: The environment is as the title Install possi...
Background of the accident: A few days ago, due t...
In the field of data analysis, database is our go...