若在项目运行时出现 Access denied for user 'username'@'ip' (using password: YES)错误解决步骤
1. 先检查 配置文件是否都正确
2.mysql执行如下语句 设置 权限 grant all privileges on *.* to 'username'@'%' identified by 'userpassword';
username ---是你的连接登录名
userpassword ---是你的连接密码
若在项目运行时出现 Access denied for user 'username'@'ip' (using password: YES)错误解决步骤
1. 先检查 配置文件是否都正确
2.mysql执行如下语句 设置 权限 grant all privileges on *.* to 'username'@'%' identified by 'userpassword';
username ---是你的连接登录名
userpassword ---是你的连接密码