Hi, I have recently migrated to WebFaction from running my own OS X Snow Leopard server. I have imported a particular database table into a database on Webfaction but am unable to connect to it. Previously I used the following: <?php $server="66.209.94.35:8889"; $user="tutorial"; $pass="password"; $db="tutorials";
?> However since moving to webfation I cannot connect to the new database. I am trying to use this: <?php mysql_connect("184.172.207.82", "kuler_user", "password") or die("Sorry, can't connect to the mysql."); @mysql_select_db("kuler_user") or die("Unable to select database"); $result = mysql_query("SELECT * FROM products"); mysql_close(); echo($result); ?> I think I should point out that I am able to log into the database using Navicat without any problems. Thanks asked 14 Oct '11, 22:06 bbyrdhouse |
You would need to get remote access enabled for your database. You can do that by filing a ticket with us at https://help.webfaction.com or by sending an email to support@webfaction.com from one of the emails in your account's contacts. answered 14 Oct '11, 22:13 neeravk Thanks ... I'll do that right away.
(14 Oct '11, 22:17)
bbyrdhouse
|