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

Error: Database Connection Failed!

jaealex

New Member
Joined
Jun 11, 2010
Messages
88
Reaction score
0
Location
Sweden
Hi.
I made an OT that not yet is open for public but as I see it's done.
I've got Uniserver + Modern AAC wich both work perfectly, I also have a good distributor + all of the files that should be there (I think), Yet i get the problem when I try to START the server.

"Error: Database Connection Failed!"

I have put the right stuff in the config.lua So I don't really know what to do,
does it have something to do with my ports or something? I really don't have a clue.
Please Help!
 
Show us that config.

" -- SQL type
-- options: mysql, sqlite, odbc or pgsql
sql_type = "mysql"

-- SQL connection part
sql_db = "db.s3db"
-- sql_db = "otserv" -- use this for MySQL/PgSQL
-- sql_db = "Your Source" -- ODBC

-- Additional connection settings for mysql, pgsql and odbc
sql_host = "localhost"
sql_port = 3306
--- sql_port = 5432 -- use this for PgSQL
sql_user = " my user"
sql_pass = " my password " "

Obviously I changed the user and pass.
 
Modern ACC don't using "config.lua" from TFS. Edit "config.php" in you www server, have error in database configuration.
Or, disable and enabled "php_mysql.dll". Don't using "php_mysqli.dll" << Modern ACC not running
 
Modern ACC don't using "config.lua" from TFS. Edit "config.php" in you www server, have error in database configuration.
Or, disable and enabled "php_mysql.dll". Don't using "php_mysqli.dll" << Modern ACC not running

/*Database information*/
$config['database']['host'] = "localhost";
$config['database']['login'] = " 'my login' ";
$config['database']['password'] = " 'my password' ";
$config['database']['database'] = " 'my db' ";

That's in Uniserv>www
 
Last edited:
Back
Top