• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

I can't get my server to work. Please help!

Phased

New Member
Joined
Jun 26, 2012
Messages
30
Reaction score
1
When i open my server it says:
"The Forgotten Server has stopped working"

but when i change (config.lua)
Lua:
    sqlType = "mysql"

to:
Lua:
    sqlType = "sqlite"

my server starts without problem. However my website (Gesior aac 1.0.3) gives me this error:
Error occured!
Error ID:
More info: CANNOT CONNECT TO DATABASE: could not find driver

File: C:\UniServerZ\www\classes/database_sqlite.php Line: 22
File: C:\UniServerZ\www\classes/database.php Line: 199
File: C:\UniServerZ\www\pages/latestnews.php Line: 15
File: C:\UniServerZ\www\system/load.page.php Line: 7
File: C:\UniServerZ\www/index.php Line: 37

I do not understand why this happens. Please help!
 
Post the connection part of the config.lua. Create a new database and user and set the host of the database as 127.0.0.1
 
Post the connection part of the config.lua. Create a new database and user and set the host of the database as 127.0.0.1

Lua:
    worldId = 1
    ip = "localhost"
    bindOnlyConfiguredIpAddress = true
    loginPort = 7171
    gamePort = 7172
    adminPort = 7171
    statusPort = 7171
    loginTries = 10
    retryTimeout = 5 * 1000
    loginTimeout = 60 * 1000
    maxPlayers = 1000

Lua:
    sqlType = "mysql"
    sqlHost = "127.0.0.1"
    sqlPort = 3306
    sqlUser = "stafallot"
    sqlPass = "************************"
    sqlDatabase = "starfallots"
    sqlFile = "forgottenserver.s3db"
    sqlKeepAlive = 1
    mysqlReadTimeout = 10
    mysqlWriteTimeout = 10
    encryptionType = "sha1"
 
Did you create a user with host 127.0.0.1?
Like this?
mysqlhelp-jpg.22997
 

Attachments

And with sqlite you dont get this? That's weird because if you notice it connect fine to the database, but crashes when loading items.
 
Back
Top