[Abnormal] MySQL connection permissions abnormal SQLException: Access denied for user 'root'@'192.168.xxx.xxx' (using password: YES)

IDEA program access Mysql, a permission exception.
SQLException: Access denied for user 'root'@'192.168.119.1 ' (using password: YES)
should be in the mysql database, table, etc. for a specific user, specific ip open, so you can modify, execute in mysql:
grant all privileges on * * to root @ '%' identified by '123456';.
represents the root user can have access to any library in any ip, password is 123456

Production, according to the actual situation.

Guess you like

Origin www.cnblogs.com/huomei/p/12103760.html