[MySQL] MySQL root user password change

 For safety, the MySQL open remote access, require frequent replacement MySQL connection password.

I do not know that they have not turned on for remote access, just take a look

use mysql
select host, user from user;

If localhost root, the only local access. If% root can be accessed remotely.

Change the password, the user decides whether to change the password here for localhost users, change user according to their own

ALTER  User  ' the root ' @ ' localhost ' IDENTIFIED by  ' password ' ;
 ALTER  User  ' the root ' @ ' % ' IDENTIFIED by  ' password ' ;

If the error: Your password does not Satisfy at The Current Policy requirements. . . Your password is not complex

 

Guess you like

Origin www.cnblogs.com/to-red/p/11543582.html