• 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!

Can't connect to database

Dankoo

Active Member
Joined
Sep 4, 2010
Messages
1,007
Reaction score
27
17602063.jpg


LUA:
	sqlType = "mysql"
	sqlHost = "127.0.0.1"
	sqlPort = 3306
	sqlUser = "my_user_name"
	sqlPass = "my_password"
	sqlDatabase = "my_database"
	sqlFile = "theforgottenserver.s3db"
	sqlKeepAlive = 0
	mysqlReadTimeout = 10
	mysqlWriteTimeout = 10
	encryptionType = "sha1"

I'm using UniformServer + REV 3777, everything looks correct, don't know what might be wrong =//
 
Via sqlite it works, but with MySQL, not.

user, pass and database are set correctly o.o

my friend, who gave me this exe, have this config:

LUA:
sqlType = "mysql"
sqlHost = "localhost"
sqlPort = 3306
sqlUser = "his_user_name"
sqlPass = "his_password"
sqlDatabase = "his_database"
sqlFile = "otserv.s3db"
sqlKeepAlive = 0
mysqlReadTimeout = 10
mysqlWriteTimeout = 10
encryptionType = "sha1"

The only difference is localhost to 127.0.0.1, I use Uniformserver and I gotta use 127~, and when I change it, it crashes anyway
 
Back
Top