遇到问题:Access denied for user ‘root‘@‘localhost‘ (using password: YES)

问题

遇到问题:[连接Mysql数据库出现的问题]Access denied for user ‘root‘@‘localhost‘ (using password: YES)

问题原因及解决

密码不对,登录到mysql服务器的密码和下面shared_bike库的密码是一样,应该一致!

登录到mysql的服务器:   mysql -h 127.0.0.1 -u root -proot
shared_bike库
[database]
ip       = 127.0.0.1 ;
port     = 3306 ;
user     = root ;
pwd      = root;//密码不对(已改)
db       = shared_bike;

[server]
port     = 9090;

你可能感兴趣的:(共享单车,linux,sql)