问题描述
Failed to create new connections on startup. Attempt 0 of 3java.sql.SQLException: null, message from server: "Host 'MICROSOF-E1FB29' is not allowed to connect to this MySQL server"at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1053)at com.mysql.jdbc.Connection.createNewIO(Connection.java:2743)at com.mysql.jdbc.Connection.<init>(Connection.java:1553)at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)at java.sql.DriverManager.getConnection(DriverManager.java:582)at java.sql.DriverManager.getConnection(DriverManager.java:185) 问题补充:wujianjun 写道
解决方案
你在装mysql时选择了不允许进行远程连接的结果。重新配置一下你mysql的服务器参数后再试试
时间: 2024-12-05 22:52:42