错误信息如下:
修改办法:
不能把:127.0.0.1写成IP地址
数据库连接失败java.sql.SQLException: null, message from server: "Host 'a30816' is not allowed to connect to this MySQL server"
修改办法:
String url="jdbc:mysql://127.0.0.1/echat?user=root&password=root"+
"&useUnicode=true&characterEncoding=utf8";
不能把:127.0.0.1写成IP地址