天堂2单机交流论坛

标题: L2J mobius loginserver 錯誤 [打印本页]

作者: little    时间: 2023-1-21 23:09
标题: L2J mobius loginserver 錯誤
[21/01 23:05:55] Database: Problem on initialize. java.sql.SQLSyntaxErrorException: No connection available within the specified time (option 'connectTimeout': 30,000 ms)
[21/01 23:05:56] Loading LoginController...
[21/01 23:05:56] Cached 10 KeyPairs for RSA communication.
[21/01 23:05:56] Loaded 127 server names.
[21/01 23:06:26] DatabaseFactory: Cound not get a connection. java.sql.SQLSyntaxErrorException: No connection available within the specified time (option 'connectTimeout': 30,000 ms)
請問何解?
作者: lovlineage    时间: 2023-1-22 09:43
打开login\config\LoginServer.ini文件
查看url和password设置是否正确。
作者: little    时间: 2023-1-22 14:30
lovlineage 发表于 2023-1-22 09:43
打开login\config\LoginServer.ini文件
查看url和password设置是否正确。

大大,我的设置如下
請问正確吗?
Login Server Settings
# ---------------------------------------------------------------------------
# This is the server configuration file. Here you can set up the connection information for your server.
# This was written with the assumption that you are behind a router.
# Dumbed Down Definitions...
# LAN (LOCAL area network) - typically consists of computers connected to the same router as you.
# WAN (WIDE area network) - typically consists of computers OUTSIDE of your router (ie. the internet).
# x.x.x.x - Format of an IP address. Do not include the x'es into settings. Must be real numbers.

# ---------------------------------------------------------------------------
# Networking
# ---------------------------------------------------------------------------

# Bind ip of the LoginServer, use 0.0.0.0 to bind on all available IPs
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: 0.0.0.0
LoginserverHostname = 0.0.0.0

# Default: 2106
LoginserverPort = 2106

# The address on which login will listen for GameServers, use * to bind on all available IPs
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: 127.0.0.1
LoginHostname = 127.0.0.1

# The port on which login will listen for GameServers
# Default: 9014
LoginPort = 9014


# ---------------------------------------------------------------------------
# Database
# ---------------------------------------------------------------------------

# Specify the appropriate driver and url for your database.
# Default: org.mariadb.jdbc.Driver
Driver = org.mariadb.jdbc.Driver

# Database URL
# Default: jdbc:mariadb://localhost/l2jmobius?useUnicode=true&characterEncoding=utf-8&useSSL=false
URL = jdbc:mariadb://localhost/l2jmobius?useUnicode=true&characterEncoding=utf-8&useSSL=false

# Database user info (default is "root" but it's not recommended)
Login = root

# Database connection password
Password = root

# Default: 5
MaximumDbConnections = 5

作者: lovefuli66    时间: 2023-2-1 18:04
数据库 名称:l2jmobius
            账号:root
            密码:root




欢迎光临 天堂2单机交流论坛 (http://l2cn.com/) Powered by Discuz! X3.2