连接mysql的时候报错Access denied for user: 'test@127.0.0.1' (Using password: YES)
String url ="jdbc:mysql://localhost/test1?user=test&password=test";
用户名密码都是正确的,我查看user表,里面的host是localhost
但是怎么我的连接字符串是localhost,运行后却成了127.0.0.1
如何把他转换成localhost?我现在不能修改user表,所以只有在代码中想办法了