MariaDB<Access denied for user 'root'@'172.17.11.85' (using password: YES)>

来源:互联网 发布:dnf数据芯片和魔刹石 编辑:程序博客网 时间:2024/06/16 11:36

今天通过JDBC连接MariaDB的时候出现了这个问题:

``
java.sql.SQLException: Access denied for user 'root'@'172.17.11.85' (using password: YES)

大致一说是root用户在172.17.11.85这台机器上没有权限登录MariaDB


解决办法:进入MariaDB CLI:
grant all privileges on . to ‘root’@’你的IP地址’ identified by ‘你的密码’ with grant option;
flush privileges;

阅读全文
0 0
原创粉丝点击