连接mysql的时候报错Access denied for user: 'root@127.0.0.1' (Using password: YES)

时间:2022-12-28 19:16:08

一般是权限问题

解决方法,用root账户进入mysql命令行,输入

GRANT select,insert,update,delete,create,drop ON samp_db.*  TO yourdatabase@127.0.0.1 IDENTIFIED BY 'yourpassword';