Trouble With Connecting MySql to UCP
#1

Hi Everyone,

First off I was unsure of where to put this, so sorry if it's int he wrong place. I seem to be having a problem connecting MySql to my User Control Panel (UCP). The game host I am using is Serverffs. I created the database and entered all the information correctly but I can't seem to find out what's going on and need some help. Basically here is the message I am getting

Код:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '127.0.0.1' (10061) in D:\hosting\8291812\html\ucp\inc\classes\MySQLHandler.php on line 25
Can't connect to MySQL server on '127.0.0.1' (10061)
I am pretty sure I have everything right but I will provide the code for that above warning.

Code For Line 25:
Код:
$this->con = mysql_connect("127.0.0.1","XXXXXXX","XXXXXXXX","XXXXXXXX");
I have it all right I just used X for privacy.


Also here is the Config and that's all the information entered.

Код:
/****MySQL Configuration****/
$config['db_host'] = "127.0.0.1";
$config['db_user'] = "XXXX";
$config['db_pass'] = "XXXX";
$config['db_name'] = "XXXX"; 
$config['table_prefix'] = "samp_accounts";
I hope someone can help me, if you need more information let me know. Thanks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)