It’s very useful to have a try, so make a record of it https://blog.csdn.net/wshxhghsjjsn/article/details/80459542
As like as two peas, I wrote the previous revision, but my MySQL version was 8. The current version is 5.7. So the screenshots are weird, but the steps are the same. I have tried all the 2 versions.
Step one: open as like as two peas, Command Line Client, see CMD, mysql, and you will find 2 identical ones.
Step 2: enter the password of MySQL. Enter is the password set when installing mysql. Only enter the password without semicolon
Step 3: enter alter user ‘root’ @’localhost ‘identified with MySQL_ native_ Password by ‘MySQL password’; Don’t miss the carriage return. There is a semicolon at the back. The password of MySQL is set when installing mysql
Step 4: input flush priorities; Don’t miss the semicolon at the back of the carriage return
Let me demonstrate: my MySQL password is 111111
The word “OK” won’t make a mistake
You can also modify the MySQL password through this method. For example, my MySQL password is 111111, I want to change it to 123456
That is to change the password of Mysql to 123456
Read More:
- MySQL Workbench Failed to Connect to MySQL at 127.0.0.1:3306 with user root Bad handshake
- MySQL: if the remote connection using navicatip fails, prompt “is not allowed to connect to this MySQL server”
- It can’t connect to local MySQL server through socket ‘/ tmp/ mysql.sock ‘(2) “;
- MySQL local connection Error 1130_ The solution of MySQL 1130 error report when remote connection through Navicat for MySQL
- PHP connection to MySQL database error: call to undefined function MySQL_ connect()
- The MySQL service suddenly hangs up with the error message can’t connect to MySQL server on ‘localhost’ (10061)
- MySQL error — multiple methods of failed to find valid data directory and MySQL setting password appear
- MYSQL login error: mysqladmin: connect to server at’localhost’ failed
- MySQL error set: failed to start mysql.service : Unit mysql.service is masked.
- How to Fix failed to Connect to MySQL at localhost:3306 with user root
- java.lang.ClassNotFoundException : com.mysql.jdbc . driver project cannot connect to database, exception, lack of MySQL driver
- Navicat VMware failed to connect to the database. Possible causes of error 2003
- After installing MySQL again under Linux, the solution of ‘MySQL module failed to start’ appears
- Solve the problem that dbvisualizer cannot connect to mysql8
- mysql problem solving: mysqladmin: connect to server at’localhost’ failed
- Sqlog connect to MySQL 8.0.24 remote server, error: 2058 solution
- Host is not allowed to connect to this MySQL server
- Sqlog can’t connect to MySQL (1045 error)
- Can’t connect to MySQL server error 111
- ERROR 2002 (HY000): Can’t connect to MySQL server on ‘localhost’ (10061)