以下是我的数据库连接代码:con =DriverManager.getConnection("jdbc:mysql://com.mysql.jdbc.exception.jdbc4.MySQLSyntaxErrorException:
Access denied for user 'jenny' @ '%' to database'try
我正以用户“someuser”的身份连接到mysql服务器。当我从本地机箱连接到服务器时,我可以看到所有的数据库。但是,当我进入服务器并使用'someuser‘登录并执行show databases;时,我只看到两个:information_schema和testmysql> show grants;
| Grants for dev@localhost| GRANT USAGE ON *.* TO