08.09.2011, 18:30
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
I am pretty sure I have everything right but I will provide the code for that above warning.
Code For Line 25:
I have it all right I just used X for privacy.
Also here is the Config and that's all the information entered.
I hope someone can help me, if you need more information let me know. Thanks
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)
Code For Line 25:
Код:
$this->con = mysql_connect("127.0.0.1","XXXXXXX","XXXXXXXX","XXXXXXXX");
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";