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
I have never used apache. After I started working...
Table of contents 1. Using Set()+Array.from() 2. ...
Table of contents Introduction Description Naming...
Table of contents What is a web container? The Na...
Networks usage tutorial Official website docker-c...
1. Differences between JSON.stringify() and JSON....
This article example shares the specific code of ...
The configuration is very simple, but I have to c...
Good HTML code is the foundation of a beautiful w...
Table of contents 1. The relationship between red...
Docker installation Install dependency packages s...
MySQL Advanced SQL Statements use kgc; create tab...
1. Floating layout 1. Let the fixed width div flo...
Table of contents Preface Enumerable properties I...
1. Introduction (1) Introduction to vw/vh Before ...