Jump to content

Facebook Application mysql connect help


Rifts

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/195233-facebook-application-mysql-connect-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.