解决Access denied for user 'root'@'localhost' (using password: YES)
首先修改 /etc/my.cnf 文件
添加这行配置:跳过密码校验
重启mysql:
service mysqld restart
然互输入mysql -u root -p
输入自己想设置的密码即可
解决Access denied for user 'root'@'localhost' (using password: YES)
首先修改 /etc/my.cnf 文件
添加这行配置:跳过密码校验
重启mysql:
service mysqld restart
然互输入mysql -u root -p
输入自己想设置的密码即可