今天在centos上安裝mysql,添加用戶一直報Access denied for user 'root'@'localhost' (using password: YES),mysql
試過了網上各類方法,sql
mysql -uroot -p
一樣都是無濟於事,後來我打開mysql的配置文件centos
/etc/my.cnf code
中間一行user:mysqlblog
mysql -u mysql
就能夠正常使用了class