MySQL forgot the root password
1. Start the task manager and end the MySQL process
2. Enter the command line, enter the bin directory of MySQL (& lt; environment change & gt; path, you can find the bin directory) and start the MySQL service
mysqld -nt –skip-grant-tables
(it may appear: 120705 17:41:14 [warning] option ‘new’: Boolean value’t ‘wasn’t recognized. Set to off. )
3. Reopen a command prompt window
4. Change the root password:
5, flush privileges;
6, quit
Reconnecting MySQL
Reprint address:
http://blog.sina.com.cn/s/blog_ a3695da601010 mrs.html
Read More:
- Centos7 forgot the root password and could not log in to the system
- Linux-mysql8.0 password reset problem – error 1396 (HY000): Operation alter user failed for ‘root’ @’localhost ‘
- MySQL error — multiple methods of failed to find valid data directory and MySQL setting password appear
- MySQL password setting error message: error 1054 (42s22): unknown column ‘password’ in ‘field list’
- Error 1045 (28000): solution to access denied for user ‘root’ @’localhost ‘(using password: no)
- Error 1045 (28000): access denied for user ‘root’ @’localhost ‘(using password: no)
- Root password of windows 10 WSL Ubuntu system
- Setting the root password of windows 10 Ubuntu subsystem
- MySQL 8 — error in setting simple password error 1819 (HY000): your password does not satisfy the current policy requirements
- MySQL startup problem (ERROR 1045 (28000): Access denied for user’ODBC’@’localhost’ (using password: NO))
- Modify the password of mysql8 on Windows
- Solve MySQL error 1698 (28000): access denied for user ‘root’ @’localhost ‘
- MySQL Workbench Failed to Connect to MySQL at 127.0.0.1:3306 with user root Bad handshake
- MySQL ERROR 1054 (42S22): Unknown column’password’ in’field list’ error
- MySQL connection error access denied for user ‘root’ @ ‘localhost‘
- Error 1064 in MySQL password change
- ER_ACCESS_DENIED_ERROR: Access denied for user ‘root‘@‘localhost‘ (using password: NO)
- MySQL error 1054 (42s22) unknown column ‘password’ in ‘field list’
- Error 1045 (28000) access denied for user ‘root’ @’localhost ‘appears in MySQL under Windows system
- Error (1820) if the password is not changed in time after MySQL installation