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
introduce Have you ever spent a whole day trying ...
Operating system: windowns10_x64 Python version: ...
Sometimes, while working with files in the Linux ...
1. Brief introduction of the event An event is a ...
When submitting a form, you may encounter situatio...
Table of contents Written in front Environment de...
Detailed explanation of the implementation method...
Detailed explanation of Linux vi command The vi e...
question: When I was doing project statistics rec...
question Recently I needed to log in to a private...
1. Use the following command to set the ssh passw...
The position property The position property speci...
MySQL backup Cold backup:停止服務進行備份,即停止數據庫的寫入Hot ba...
Table of contents Object parameters using destruc...
I encountered a problem today: Can I use the as a...