$ ./mysqladmin -u root -p ‘ 编辑 ‘ 输入密码:
mysqladmin:在“ localhost”处连接到服务器失败错误: “对用户“ root” @“ localhost”的访问被拒绝(使用密码:是)
我怎样才能解决这个问题?
/etc/my.cnf
/etc/mysql/my.cnf
skip-grant-tables
[mysqld]
mysql -u root -p
mysql> flush privileges;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'NewPassword';