Hey everyone I tried to search for this answer but i'm fairly new I honestly have no idea what to do.
I'm trying to create a facebook application.
here is some background on the setup.
using godaddy to host my app. with php 5.X and Mysql
here my is connect code:
$username="xxxxxx";
$password="xxxxxx";
$database="xxxxxx";
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
Yes im 100% sure the username/password are correct. and I tired both localhost and 'localhost' still didnt work
anyway this is the error im getting when i refresh the page:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/r/h/e/rh/html/fb/php/config.php on line 19
Unable to select database
Thanks for the help