jeffaklumpen
Member
I've launched a new OT server on a vps machine. Everything's been working fine for a couple of days but all of a sudden I've been getting this error:
Failed connecting to database - MYSQL ERROR: Can't connect to MySQL server on 'localhost' (10061) (2003)
The weird thing is that I get this problem at random a while after the server has been online. Sometimes it's a couple of hours in and sometimes a couple of minutes. People can log on and play and then all of a sudden this happens.
Config.lua
sqlType = "mysql"
sqlHost = "127.0.0.1"
sqlPort = 3306
sqlUser = "xxxxx"
sqlPass = "xxxxx"
sqlDatabase = "xxxxx"
sqlFile = "forgottenserver.s3db"
sqlKeepAlive = 0
mysqlReadTimeout = 10
mysqlWriteTimeout = 10
encryptionType = "sha1"
Config.php
$config['sqlUser'] = 'xxxxx';
$config['sqlPassword'] = 'xxxxx';
$config['sqlDatabase'] = 'xxxxx';
$config['sqlHost'] = '127.0.0.1';
I have searched the forums and could not find anything that would solve my problem. I'm using Uniserver.
Failed connecting to database - MYSQL ERROR: Can't connect to MySQL server on 'localhost' (10061) (2003)
The weird thing is that I get this problem at random a while after the server has been online. Sometimes it's a couple of hours in and sometimes a couple of minutes. People can log on and play and then all of a sudden this happens.
Config.lua
sqlType = "mysql"
sqlHost = "127.0.0.1"
sqlPort = 3306
sqlUser = "xxxxx"
sqlPass = "xxxxx"
sqlDatabase = "xxxxx"
sqlFile = "forgottenserver.s3db"
sqlKeepAlive = 0
mysqlReadTimeout = 10
mysqlWriteTimeout = 10
encryptionType = "sha1"
Config.php
$config['sqlUser'] = 'xxxxx';
$config['sqlPassword'] = 'xxxxx';
$config['sqlDatabase'] = 'xxxxx';
$config['sqlHost'] = '127.0.0.1';
I have searched the forums and could not find anything that would solve my problem. I'm using Uniserver.