Exception in thread "main" java.sql.SQLException: null, message from server: "Host 'DESKTOP-O852FIL' is not allowed to connect to this MySQL server"
用户名root密码没错
报这个错是哪里出了问题啊?
可能是数据库不能被原创访问,只能是localhost访问。