Mac latest version of MySQL 8.0.22 password recovery Problem description: Yesterday, I suddenly wanted to experience the password change process of the latest version of MySQL on Mac. I changed the plugin by replacing caching_sha2_password with mysql_native_password, and then used UPDATE SET to modify authentication_string. I didn't remember to add the password('new password') function, which led to ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Cause Analysis: There are several pitfalls in the whole thing: 1. The password() function has been deprecated in MySQL 8.0 Solution: Step 1: Shut down the MySQL server Apple icon in the upper left corner - System Preferences - MySQL - Stop MySQL Server Step 2: Use system administrator privileges to skip MySQL security authentication and force login 1. Command + Space So far, I have successfully logged into MySQL in safe mode. 9. FLUSH PRIVILEGES; (This statement extracts the user information of the current user table and the privilege table permissions into memory to ensure that the permissions can be successfully obtained to modify the user table) USE mysql; UPDATE user SET authentication_string = '' WHERE User = 'root'; ALTER user 'root'@'localhost' IDENTIFIED BY '123456'; The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
>>: Several ways to submit HTML forms_PowerNode Java Academy
Table of contents Written in front Several storag...
Engineering Structure The project is divided into...
Docker Learning https://www.cnblogs.com/poloyy/p/...
First, there is only one change event. changeleve...
1. Background During the server development proce...
7 ways to implement a two-column layout with fixe...
Table of contents Preface What situations can cau...
Preface In addition to the default built-in direc...
During development, I encountered such a requireme...
Why mention textarea specifically? Because the tex...
Jenkins configuration of user role permissions re...
Table of contents Summarize Summarize When the ar...
Table of contents Preface 1. Get the current time...
Table of contents Overview 1. Hook calling order ...
Before hiding: After hiding: CSS: Copy code The co...