JavaWeb项目,连接mysql数据库之后报出这个错误,在CentOS6.5系统下创建的项目,root用户下创建的数据库,没有设置密码
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
收起
String url = "jdbc:mysql://127.0.0.1:3306/test"; 把之前localhost改为127.0.0.1就好了
报告相同问题?