因为我 IDEA 连接数据库 mind 报错:
The specified user/password combination is rejected:
[28000][1045] Access denied for user 'test'@'%' (using password: YES)
这是需要给数据库用户配置使用这个数据库的权限。
mysql> use mind;
Database changed
mysql> grant all on 数据库名称.* to '用户名称'@'%' identified by '用户密码' with grant option;
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql>
以上。
再补充一个:
连接数据库包这个错误
Server returns invalid timezone. Need to set 'serverTimezone' property.
设置时区就好了。
set time_zone = '+8:00';

在尝试使用IDEA连接本地MySQL数据库时遇到错误。问题可能在于数据库用户缺少访问特定数据库的权限,以及连接数据库时可能出现的时区设置问题。解决方法包括为用户配置权限和调整时区设置。
2080

被折叠的 条评论
为什么被折叠?



