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
Error occurs: When exporting the database from My...
Preface In actual business, paging is a common bu...
Some people say that IE9 is Microsoft's secon...
The reason is that this type of web page originate...
console.log( [] == ![] ) // true console.log( {} ...
Case 1: Last submission and no push Execute the f...
There is a table user, and the fields are id, nic...
Table partitioning is different from database par...
1. js will not protect hasOwnProperty from being ...
Why should we read the log? For example, if the c...
1. Let's look at a table creation statement f...
The crontab command is used by Unix and Linux to ...
Table of contents 1. Download 2. Install nginx an...
Install Filebeat has completely replaced Logstash...
WeChat applet form validation, for your reference...