mariocesar Posted December 27, 2008 Share Posted December 27, 2008 I runned this registration code on godaddy hosting with no problems, now I run the same code on ippower and give this message " Lost connection to MySQL server during query in ......." here is the config.php code <?php $dbhost='****'; $dbusername='****'; $dbuserpass='***'; $dbname='****'; // connect to the mysql database server. mysql_connect ($dbhost, $dbusername, $dbuserpass); mysql_select_db($dbname) or die('I cannot select the database because: ' . mysql_error()); ?> any idea why, thanks Quote Link to comment https://forums.phpfreaks.com/topic/138521-lost-connection-to-mysql-server-during-query/ Share on other sites More sharing options...
fenway Posted December 29, 2008 Share Posted December 29, 2008 Yikes... you just gave 35 ppl all your login credentials... I suggest you switch them ASAP!!!!! But regardless... this isn't anything of the ordinary unless it happens repeatedly. Quote Link to comment https://forums.phpfreaks.com/topic/138521-lost-connection-to-mysql-server-during-query/#findComment-725697 Share on other sites More sharing options...
PFMaBiSmAd Posted December 29, 2008 Share Posted December 29, 2008 They're posted in this cross-posted thread as well in case not enough people saw them here - http://www.phpfreaks.com/forums/index.php/topic,231718.msg1074433.html#msg1074433 mariocesar, did you check out the link to that error message in the manual that was posted in your other thread to see if anything it mentioned applied to what your code is going? Quote Link to comment https://forums.phpfreaks.com/topic/138521-lost-connection-to-mysql-server-during-query/#findComment-725709 Share on other sites More sharing options...
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.