Navicat connection MySQL error description analysis

Navicat connection MySQL error description analysis

Local connection error description using Navicat

2013-Lost connection to MySQL server at 'reading initial communication packet', system error:0 "Internal error/check (Not system error)"

Error description

Check

Solution

cd /etc/mysql/mysql.conf.d/
sudo vim mysqld.cnf

Annotate the red box content

Notes

Restart the MySQL service and test the connection again

Connection successful
Check


environment

Virtual Machine Version

insert image description here

MySQL version

insert image description here

Preliminary preparation

Check MySQL running status

sudo systemctl mysql status

Startup Status
If it is not running, start the MySQL service using the sudo systemctl start mysql command

Change root password

After installing MySQL, the root password is empty by default. Change the root user password

mysqladmin -u root password "yourNewPassword";

Enter the MySQL interactive environment

sudo mysql -u root -p
# then enter your password 

Enter interactive

View All Libraries

show databases; 

show databases

Switch Library

use databaseName; 

insert image description here

New User Related

create

create user 'userName'@'%' identified by 'yourPassword';
# 'userName'@'%' @ The '%' after is the host configuration 

Create a new user

Check

You can see that no permissions are assigned

insert image description here

Assign permissions

grant all privileges on *.* to 'userName'@'%' identified by 'yourPassword';

Assign all permissions on all tables in all libraries to this user

insert image description here

flush privileges; 

flush

View this user again

Assigned permissions

The above is the detailed solution to the error when Navicat connects to MySQL. For more information about the error when Navicat connects to MySQL, please pay attention to other related articles on 123WORDPRESS.COM!

You may also be interested in:
  • Solve the problem of Navicat for MySQL reporting 2005 error when connecting to MySQL
  • Common errors and solutions for connecting Navicat to virtual machine MySQL
  • Navicat connects to MySQL8.0.11 and an error 2059 occurs
  • When Navicat connects to MySQL, it reports 10060, 1045 errors and the location of my.ini
  • Solve the 1251 error when establishing a connection between mysql and navicat
  • Solve the 3680 error when creating a new database in Navicat on Mac

<<:  Detailed explanation of the use of base tag in HTML

>>:  Example of how to implement underline effects using Css and JS

Recommend

Example of how to deploy a Django project using Docker

It is also very simple to deploy Django projects ...

Installation and configuration method of Zabbix Agent on Linux platform

Here is a brief summary of the installation and c...

VMware virtual machine installation Linux system graphic tutorial

This article shares the specific steps of VMware ...

How to use linux commands to convert and splice audio formats

Install FFmpeg flac eric@ray:~$ sudo apt install ...

Docker custom network container interconnection

Table of contents Preface –link Custom Network As...

Detailed explanation of CocosCreator message distribution mechanism

Overview This article begins to introduce content...

Detailed explanation of the use of mysql explain (analysis index)

EXPLAIN shows how MySQL uses indexes to process s...

7 useful new TypeScript features

Table of contents 1. Optional Chaining 2. Null va...

Share some key interview questions about MySQL index

Preface An index is a data structure that sorts o...

About if contains comma expression in JavaScript

Sometimes you will see English commas ",&quo...