PDA

View Full Version : MySQL error?


Jonathan
July 29th, 2008, 11:26 PM
i keep getting this error

Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/b/q/u/bquotelyts/html/Myspace Stuff/Music-Skins/category/rappers/index.php on line 50

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/content/b/q/u/bquotelyts/html/Myspace Stuff/Music-Skins/category/rappers/index.php on line 50
Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2)

&& line 50 looks like this


$t = mysql_query('SELECT * FROM `music_skins` WHERE `category` = `rappers`');


Im really confused lol can anyone help

Nora
July 30th, 2008, 12:05 AM
Did you provide the correct info to connect?

SlickEddie
July 30th, 2008, 12:09 AM
you haven't connected to the db....what script is this?

Jonathan
August 1st, 2008, 01:51 PM
i got it thnx i put in the wrong connect information lol =P