The problem that MYSQL5.7.17 cannot connect under MAC. After downloading and installing SQLBench_community 6.3.9, the new MYSQL CONNECTIONS cannot connect at all, and it prompts that the password is wrong. The specific manifestation is: Access denied for user 'root'@'localhost' (using password: YES) Step 1: Apple->System Preferences->Click MySQL at the bottom. In the pop-up page, turn off the MySQL service (click stop MySQL server); Step2: Enter the terminal and enter: cd /usr/local/mysql/bin/ After pressing Enter, log in with administrator privileges sudo su After pressing Enter, enter the following command to disable the mysql authentication function./mysqld_safe --skip-grant-tables & After pressing Enter, MySQL will automatically restart (the status of MySQL in the preferences will become running) Step 3: Enter the command ./mysql After pressing Enter, enter the command FLUSH PRIVILEGES; After pressing Enter, enter the command SET PASSWORD FOR 'root'@'localhost' = PASSWORD('your new password'); At this point, the password change is complete and you can log in successfully. The above is the problem and solution of MYSQL5.7.17 not being able to connect under MAC introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor 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:
|
<<: Javascript to achieve the effect of closing advertisements
>>: How to implement Docker container self-start
Preface: I recently started to study the construc...
Prerequisites for installing MySQL: Install CentO...
This article records the installation and configu...
This article shares the specific code of Vue usin...
Table of contents LAMP architecture 1.Lamp Introd...
This article example shares the specific code for...
1. Install the built-in Linux subsystem of win10 ...
1. Tools We need two tools now: MySQL server (mys...
Recently, when I was working on a conference heal...
1. Go to the official website to download the jdk...
Install 8.0.13 based on MySQL 6.1.3. MySQL 8.0.13...
This article uses an example to describe how to r...
Table of contents vite Build Configuration vite.c...
When I was asked this question, I was ignorant an...
1. About Registry The official Docker hub is a go...