2024-10-24 08:01:28
没有设置mysql你所连的那个数据库的权限。建议你先用navicat for mysql 先登陆看能不能进去,估计也是进不去的。要设置下
进去了……依着你说的设置了下~
再运行就出现了如下问题……求指导╮(╯▽╰)╭
Communications link failure
Last packet sent to the server was 0 ms ago.
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
Last packet sent to the server was 0 ms ago.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
这是因为java没有连上mysql,用navicat for mysql 可以查询不?看你的连接有没有写错?Mysql服务开启了没?
2024-10-24 09:18:10
2024-10-24 08:06:04
2024-10-24 08:16:34
不行诶……用localhost和127.0.0.1结果都一样……
2024-10-24 08:12:03