Access denied for user ‘root‘@‘127.0.0.1‘ (using password: YES)_access denied for user 'root'@'127.0.0.1' (using p
作者:IT小白 | 2024-02-29 15:10:52
赞
踩
access denied for user 'root'@'127.0.0.1' (using password: yes)
修改权限,***是数据库连接密码 grant all privileges on *.* to root@'%' identified by '******' flush privileges;刷新 如果在服务器上部署,将代码中连接数据库ip修改为服务器ip,不要用localhost和127.0.0.1