mysql登陆问题mysql中Access denied for user 'root'@'localhost' (using password:YES)(20


若出现不能访问的问题
mysql登陆问题mysql中Access denied for user 'root'@'localhost' (using password:YES)(20

mysql添加用户



mysql -uroot

show databases;

use musql;

UPDATE user SET Password=PASSWORD('123456') where USER='root';

FLUSH PRIVILEGES;


mysql 对远程客户端设置访问权限

GRANT ALL ON *.* TO admin@'%' IDENTIFIED BY 'admin' WITH GRANT OPTION;
FLUSH PRIVILEGES;

你可能感兴趣的:(localhost)