永洪社区

标题: 数据库连接失败 [打印本页]

作者: 李老中医    时间: 2024-3-25 13:13
标题: 数据库连接失败
错误代码:110099999
数据集: '未命名-3'   执行用户: 'admin'
g5.util.RTWrappedException: g5.util.exception.ConnException: null,  message from server: "Host 'WIN-N2DNUH5MDNT' is not allowed to connect to this MySQL server"
        at g5.qry.driver.ConnectionProvider.getConn(ConnectionProvider.java:115)
        at g5.sv.qry.req.TestQryReq$CreateConnRunable.run(TestQryReq.java:351)
        at g5.thread.ThreadPoolWithChecker$GThread.run0(ThreadPoolWithChecker.java:223)
        at g5.thread.AbsThreadPool$PThread.run(AbsThreadPool.java:325)
Caused by: g5.util.exception.ConnException: null,  message from server: "Host 'WIN-N2DNUH5MDNT' is not allowed to connect to this MySQL server"
        at g5.qry.sql.impl.SQLConnBuilder.build0(SQLConnBuilder.java:91)
        at g5.qry.sql.impl.JDBCConnBuilder.build(JDBCConnBuilder.java:66)
        at jdk.internal.reflect.GeneratedMethodAccessor304.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at g5.qry.driver.ConnectionProvider.getConn(ConnectionProvider.java:90)
        ... 3 more
Caused by: java.sql.SQLException: null,  message from server: "Host 'WIN-N2DNUH5MDNT' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1031)
        at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2189)
        at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2220)
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2015)
        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:768)
        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
        at jdk.internal.reflect.GeneratedConstructorAccessor515.newInstance(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:403)
        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:385)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:323)
        at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
        at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:189)
        at g5.qry.sql.impl.SQLConnBuilder.build0(SQLConnBuilder.java:81)
        ... 8 more



作者: yhdata_yzm    时间: 2024-3-25 13:17
数据库去修改,把你的host加入mysql允许访问的名单里




欢迎光临 永洪社区 (https://club.yonghongtech.com/) Powered by Discuz! X3.4