[Warning] IP address '10.127.xxxx' could not be resolved: Temporary failure in name resolution [Warning] IP address '10.127.xxxx' could not be resolved: Temporary failure in name resolutio
> show grants for webadmin@'10.127.xxx.xxx'; +---------------------------------------------------+ | Grants for webadmin@10.127.xxx.xxx| +---------------------------------------------------+ | GRANT USAGE ON *.* TO 'webadmin'@'10.127.xxx.xxx' | +---------------------------------------------------+ 1 row in set (0.00 sec)而后面的就是访问权限了,比如开发同学不知道哪个权限合适,说你给我所有的权限吧,于是DBA说好,就写下了*.*,然后问题就来了。
> GRANT ALL PRIVILEGES ON *.* TO 'webadmin'@'10.127.xxx.xxx';使用show grants查看权限,发现原来的usage权限竟然没了。
> show grants for webadmin@'10.127.xxx.xxx'; +------------------------------------------------------------+ | Grants for webadmin@10.127.xxx.xxx| +------------------------------------------------------------+ | GRANT ALL PRIVILEGES ON *.* TO 'webadmin'@'10.127.xxx.xxx' | +------------------------------------------------------------+
但是很快又收到了开发同学的信息说,程序的错误变了,现在是这个错误。
{main} Attempted reconnect 3 times. Giving up. {main} at com.mysql.jdbc.Connection.createNewIO(Connection.java:2781) {main} at com.mysql.jdbc.Connection.(Connection.java:1485) {main} at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) {main} at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)