Shivam Amin Posted March 13, 2013 Report Share Posted March 13, 2013 I created a database called: shivamam_FreeWizard101Codes I also made a user called: shivamam_fw101c I also interconnected them, and gave the user all permissions The following script worked at my last host, so why doesn't it work here? $mysql_host = "localhost"; $mysql_username = "shivamam_fw101c"; $mysql_password = "password"; $mysql_database = "shivamam_FreeWizard101Codes"; mysql_select_db($mysql_database, mysql_connect($mysql_host, $mysql_username, $mysql_password)); I get the following error: Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 113 I don't understand what the problem is. All i changed was the My Sql info. This worked perfectly at my last host, so why not here? Mariellfro and liuhaohan 2 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.