xotj123 Posted October 20, 2010 Share Posted October 20, 2010 Hello, I had my system crash recently. We are reloading WHMCS, and I have MySQL installed and can login to it from phpmyadmin just fine. I created an empty DB in MySQL... Any ideas? Regards, TJ Havens 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted October 20, 2010 Share Posted October 20, 2010 Can you put the following script in a new .php file and post the output? Replace the sql-user, sql-password, sql-database (and if needed the localhost) with your own credentials as used in the installation. <?php $link = mysql_connect("localhost", "sql-user", "sql-password"); if(!$link) die("Connection error: ".mysql_error()); $db_selected = mysql_select_db("sql-database", $link); if(!$db_selected) die("Database error: ".mysql_error()); ?> 0 Quote Link to comment 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.