java 连接数据库的时候报这个错误:
java.sql.SQLException: null, message from server: "Host 'macbookemacbook' is not allowed to connect
最后才发现我的URL有问题
URL=“jdbc:mysql://192.148.43.6:3306/SC“
改为:URL=“jdbc:mysql://localhost:3306/SC“
然后就OK了
java 连接数据库的时候报这个错误:
java.sql.SQLException: null, message from server: "Host 'macbookemacbook' is not allowed to connect
最后才发现我的URL有问题
URL=“jdbc:mysql://192.148.43.6:3306/SC“
改为:URL=“jdbc:mysql://localhost:3306/SC“
然后就OK了