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

Solved Server doesn't appear to be reading config.lua for sql connection?

ADeadlySpoon

New Member
Joined
Oct 21, 2010
Messages
18
Reaction score
0
Location
The Moon
Hey again,
It would appear my server (TFS 0.2.3.0) isn't reading the config.lua because it says in the GUI:
Code:
[23/10/2010 00:28:26] >> Loading config
[23/10/2010 00:28:26] >> Loading RSA key
[23/10/2010 00:28:26] >> Testing SQL connection... MySQL.
[23/10/2010 00:28:26] > MySQL ERROR mysql_real_connect: Access denied for user 'root'@'localhost' (using password: NO)
[23/10/2010 00:28:27] > ERROR: Failed to connect to database, read doc/MYSQL_HELP for information or try SqLite which doesn't require any connection.
The config.lua settings have been changed to point to mysql with a different password, same user. The really weird part is, if I try using SQLite this comes up:
Code:
[23/10/2010 00:30:51] >> Loading config
[23/10/2010 00:30:51] >> Loading RSA key
[23/10/2010 00:30:51] >> Testing SQL connection... SqLite.
[23/10/2010 00:30:51] > ERROR: Failed to connect to sqlite database file, make sure it exists and is readable.
(Yes I'm able to change from MySQL to SQLite in config.lua, so I'm really confused why the first error shows at all.)

I have tried multiple databases in the config.lua.

Thanks,
ADS.
 
Last edited:
No, I'm not using any database software, just PhpMyAdmin and the files that came with the server.

I've previously had SQL servers, but never had a problem like this. :/
 
Sorry, I meant already set to 127.0.0.1... These are the settings (obv without the password)
Code:
sqlType = "mysql"
	sqlHost = "127.0.0.1"
	sqlPort = 3306
	sqlUser = "root"
	sqlPass = "......."
	sqlDatabase = "rrot"
	sqlFile = "armonia.sql"
	sqlKeepAlive = 60
	mysqlReadTimeout = 10
	optimizeDatabaseAtStartup = "yes"
	passwordType = "plain"
 
Sorry, I meant already set to 127.0.0.1... These are the settings (obv without the password)
Code:
sqlType = "mysql"
	sqlHost = "127.0.0.1"
	sqlPort = 3306
	sqlUser = "root"
	sqlPass = "......."
	sqlDatabase = "rrot"
	sqlFile = "armonia.sql"
	sqlKeepAlive = 60
	mysqlReadTimeout = 10
	optimizeDatabaseAtStartup = "yes"
	passwordType = "plain"

Change to this..

Lua:
sqlType = "mysql"
	sqlHost = "127.0.0.1"
	sqlPort = 3306
	sqlUser = "root"
	sqlPass = "......."
	sqlDatabase = "rrot"
	sqlFile = "armonia.sql"
	sqlKeepAlive = 0
	mysqlReadTimeout = 10
	optimizeDatabaseAtStartup = "yes"
	passwordType = "plain"
 
Change to this..

Lua:
sqlType = "mysql"
	sqlHost = "127.0.0.1"
	sqlPort = 3306
	sqlUser = "root"
	sqlPass = "......."
	sqlDatabase = "rrot"
	sqlFile = "armonia.sql"
	sqlKeepAlive = 0
	mysqlReadTimeout = 10
	optimizeDatabaseAtStartup = "yes"
	passwordType = "plain"

Nope. Still comes up with the same error. :/
 
There is something really wrong, I deleted
Code:
	sqlHost = "127.0.0.1"
	sqlPort = 3306
	sqlUser = "root"
	sqlPass = "wcde8bku"
	sqlDatabase = "armonia"
	sqlFile = "armonia.sql"
	sqlKeepAlive = 0
	mysqlReadTimeout = 10
	optimizeDatabaseAtStartup = "yes"
	passwordType = "sha1"

and it still said access denied blah blah exactly the same as before, yet there's no password being provided at all.
 
Right, I fixed it, I used a difrent config.lua and it's fine now.
It would appear the server and config.lua weren't compatible (no idea how that happens but it fixed it).
 
Back
Top