Local connection error description using Navicat
Solution cd /etc/mysql/mysql.conf.d/ sudo vim mysqld.cnf Annotate the red box content Restart the MySQL service and test the connection again environmentVirtual Machine VersionMySQL versionPreliminary preparationCheck MySQL running statussudo systemctl mysql status
Change root passwordAfter installing MySQL, the root password is empty by default. Change the root user password mysqladmin -u root password "yourNewPassword"; Enter the MySQL interactive environmentsudo mysql -u root -p # then enter your password View All Librariesshow databases; Switch Libraryuse databaseName; New User Relatedcreate create user 'userName'@'%' identified by 'yourPassword'; # 'userName'@'%' @ The '%' after is the host configuration Check You can see that no permissions are assigned Assign permissions grant all privileges on *.* to 'userName'@'%' identified by 'yourPassword'; Assign all permissions on all tables in all libraries to this user flush privileges; View this user again 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:
|
<<: Detailed explanation of the use of base tag in HTML
>>: Example of how to implement underline effects using Css and JS
It is also very simple to deploy Django projects ...
Here is a brief summary of the installation and c...
This article shares the specific steps of VMware ...
I reinstalled the system some time ago, but I did...
Install FFmpeg flac eric@ray:~$ sudo apt install ...
summary: The following is a method for changing t...
Table of contents Preface –link Custom Network As...
1. Overview The Promise object is a specification...
Overview This article begins to introduce content...
This article introduces the installation and use ...
EXPLAIN shows how MySQL uses indexes to process s...
Detailed explanation of MySQL exporting data from...
Table of contents 1. Optional Chaining 2. Null va...
Preface An index is a data structure that sorts o...
Sometimes you will see English commas ",&quo...