Today, I used the green version of mysql. the root password is blank during login. I have found several solutions on the Internet. I personally think the two methods are the most convenient and quick: the first one is: run the mysqladmin command to modify the password ----------- mysqladmin-uroot-ppasswordnewpassword. Enter the root password and press Enter.
Today, I used the green version of mysql. the root password is blank during login. I have found several solutions on the Internet. I personally think the two methods are the most convenient and quick: the first one is: run the mysqladmin command to modify the password ----------- mysqladmin-u root-p password newpassword. Enter the root password and press Enter.
Today, I used the green version of mysql. the root password is blank during login. I have found several solutions on the Internet. I personally feel that the two methods are the most convenient and quick:
First: Use the mysqladmin command to modify the password ----------- mysqladmin-u root-p password newpassword
Enter the root password and press Enter.
Type 2: first enter the mysql database, and then enter the following command:
Mysql> use mysql
Mysql> update user set password = PASSWORD ("newpassword") where user = 'root ';
Then exit and log on again.