java连接linux中mysql出现:Access denied for user 'root'@'192.168.91.1' (using password: YES)

来源:互联网 发布:python是面向对象吗 编辑:程序博客网 时间:2024/06/06 03:38

这是因为当前用户没有访问mysql的权限导致的在mysql中执行:grant all privileges on *.* to root@'%' identified by 'root';

就可以访问了。

0 1