pspotential Posted May 15, 2009 Posted May 15, 2009 hi guys i switched hosts and i get this error when clicking register im guessing the game cannot access the host but i have done this correctly could it be the host or have i done something wrong error when click on register: Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'mysql_host' (1) in /www/sqweebs.com/r/i/k/rikdanny/htdocs/mysql.php on line 3 Unknown MySQL server host 'mysql_host' (1) the mtsql host is local host and that is what ive put it as in the mysql.php Quote
CrazyT Posted May 15, 2009 Posted May 15, 2009 Re: Installing V1 Show the mysql.php file here. but of course without your user,pass,database. Quote
pspotential Posted May 15, 2009 Author Posted May 15, 2009 Re: Installing V1 ok one sec i think the sql_schema file myt be missing some table functions im just going to have a look thanks thought heres the file $c=mysql_connect('localhost','*user*','*Pass*') or die(mysql_error()); mysql_select_db('rikdanny_1',$c); EDIT: no the sql_schema was fine hmmm Quote
CrazyT Posted May 15, 2009 Posted May 15, 2009 Re: Installing V1 ok one sec i think the sql_schema file myt be missing some table functions im just going to have a look thanks thought heres the file $c=mysql_connect('localhost','*user*','*Pass*') or die(mysql_error()); mysql_select_db('rikdanny_1',$c); EDIT: no the sql_schema was fine hmmm Use somethink like <?php //I only put <?php for the colors. $config = array('HostName' => 'localhost', 'UserName' => 'DATABASE USER', 'PassWord' => 'DATABASE PASSWORD', 'DataBase' => 'DATABASE NAME'); $c = mysql_connect($config['HostName'], $config['UserName'], $config['PassWord']) or die(mysql_error()); mysql_select_db($config['DataBase'], $c) or die(mysql_error()); Just edit the stuff where it says DATABASE USER, DATABASE PASS, DATABASE NAME. Should be done then. Quote
pspotential Posted May 15, 2009 Author Posted May 15, 2009 Re: Installing V1 yes its working thanks :) +1 Quote
CrazyT Posted May 15, 2009 Posted May 15, 2009 Re: Installing V1 yes its working thanks :) +1 Glad to hear. :mrgreen: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.