远程连接MySQL数据库
作者:互联网
java.sql.SQLException: Access denied for user 'root'@'120.XX.XX.XX' (using password: YES)
1.查看权限
show grants;
2.授权
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
3.刷新权限
FLUSH PRIVILEGES;
标签:OPTION,GRANT,数据库,XX,MySQL,权限,root,远程,PRIVILEGES 来源: https://www.cnblogs.com/ytsja/p/16341331.html