简体   繁体   中英

access denied in jdbc connecting to mysql

my database name is :

test 

i gave :

grant all on test.* to 'me' identified by 'foolinGAround_8-' 

and when i try to connect through jdbc i am getting

com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Access denied for user 'me'@'%' to database 'test/'

what is the reason and how can I solve it?

尝试GRANT ALL PRIVILEGES ON test.* TO 'me'@'%'IDENTIFIED BY 'foolinGAround_8-' WITH GRANT OPTION;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM