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

Linux Failed to Connect to database

RRRIKARDO

New Member
Joined
Oct 1, 2015
Messages
38
Reaction score
2
Hi all,
I compiled my server, so when start the server ( ./tfs ) it return an ERROR

>> Loading config: config.lua
>> Establishing database connection...
MySQL Error Message: Can't connect to MySQL server on '149.56.132.83' (111)
> ERROR: Failed to connect to database
>> No services running. The server is NOT online
root@


So, the IP is from my VPS
What am I doing wrong ?
 
Solution
T
You must check if your config.lua has the correct mysql username and password.
Code:
mysqlUser = "xxxxxx"
mysqlPass = "xxxxxxx"
mysqlDatabase = "xxxx"
You must check if your config.lua has the correct mysql username and password.
Code:
mysqlUser = "xxxxxx"
mysqlPass = "xxxxxxx"
mysqlDatabase = "xxxx"
 
Solution
Back
Top