04-12-2020, 01:56 AM
Помогите разобраться.
Starting AuthServer.
log4j:WARN No appenders could be found for logger (l2s.authserver.Config).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:873)
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1710)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1226)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2188)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2219)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2014)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:776)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:78)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
at l2s.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:80)
at l2s.authserver.database.DatabaseFactory.getConnection(DatabaseFactory.java:26)
at l2s.authserver.AuthServer.main(AuthServer.java:94)
Server terminated abnormaly ...
Server terminated ...
Для продолжения нажмите любую клавишу . . .
Как я понимаю, он ругается на неправильный пароль. Пароль я прописал. Ошибка где то в этом синтаксисе?
# ================================================================
# Настройки сервера авторизации
# ================================================================
# Хост и порт для клиентских соединений
LoginserverHostname = *
LoginserverPort = 2106
# Хост и порт для игровых серверов
LoginHost = *
LoginPort = 9014
# Принимать новый игровой сервер в свободный слот
AcceptNewGameServer = True
# Настройки БД
Driver = com.mysql.jdbc.Driver
URL = jdbc:mysql://localhost/l2auth?useSSL=false
Login = root
Password = 123321
MaximumDbConnections = 3
Starting AuthServer.
log4j:WARN No appenders could be found for logger (l2s.authserver.Config).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:873)
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1710)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1226)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2188)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2219)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2014)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:776)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:78)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
at l2s.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:80)
at l2s.authserver.database.DatabaseFactory.getConnection(DatabaseFactory.java:26)
at l2s.authserver.AuthServer.main(AuthServer.java:94)
Server terminated abnormaly ...
Server terminated ...
Для продолжения нажмите любую клавишу . . .
Как я понимаю, он ругается на неправильный пароль. Пароль я прописал. Ошибка где то в этом синтаксисе?
# ================================================================
# Настройки сервера авторизации
# ================================================================
# Хост и порт для клиентских соединений
LoginserverHostname = *
LoginserverPort = 2106
# Хост и порт для игровых серверов
LoginHost = *
LoginPort = 9014
# Принимать новый игровой сервер в свободный слот
AcceptNewGameServer = True
# Настройки БД
Driver = com.mysql.jdbc.Driver
URL = jdbc:mysql://localhost/l2auth?useSSL=false
Login = root
Password = 123321
MaximumDbConnections = 3