Detailed explanation of the 10061 unknown error when using Navicat to connect to a remote Linux MySQL database

Detailed explanation of the 10061 unknown error when using Navicat to connect to a remote Linux MySQL database

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:
  • Solution to navicat automatically disconnecting from the database after a period of time
  • How to remotely connect to MySQL database with Navicat Premium
  • How to use Navicat to create a database and connect with JDBC
  • How to remotely connect to the cloud server database using Navicat
  • When Navicat Premium connects to the database, the error message appears: 2003 Can't connect to MySQL server on''localhost''(10061)
  • Solution to the problem "MySql database does not support remote connection" when connecting to NaviCat
  • How to connect Intellij IDEA to Navicat database

<<:  React + Threejs + Swiper complete code to achieve panoramic effect

>>:  Ubuntu 18.0.4 installs mysql and solves ERROR 1698 (28000): Access denied for user ''root''@''localhost''

Recommend

A brief talk about JavaScript variable promotion

Table of contents Preface 1. What variables are p...

DOCTYPE type detailed introduction

<br />We usually declare DOCTYPE in HTML in ...

Using streaming queries in MySQL to avoid data OOM

Table of contents 1. Introduction 2. JDBC impleme...

Docker exposes port 2375, causing server attacks and solutions

I believe that students who have learned about th...

Canonical enables Linux desktop apps with Flutter (recommended)

Google's goal with Flutter has always been to...

MySql development of automatic synchronization table structure

Development Pain Points During the development pr...

Example of utf8mb4 collation in MySQL

Common utf8mb4 sorting rules in MySQL are: utf8mb...

Tutorial on building a zookeeper server on Windows

Installation & Configuration The official web...

HTML basic syntax is convenient for those who are just starting to learn HTML

1.1 General marking A general tag consists of an ...

Introduction to the usage of common XHTML tags

There are many tags in XHTML, but only a few are ...

Build a file management system step by step with nginx+FastDFS

Table of contents 1. Introduction to FastDFS 1. I...

SQL implementation of LeetCode (178. Score ranking)

[LeetCode] 178.Rank Scores Write a SQL query to r...