Jump to content


Photo

Warning: mysql_connect():... Help with database connectivity?


  • Please log in to reply
2 replies to this topic

#1 jakKersS

jakKersS
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 02 October 2006 - 10:37 AM

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/www/crazygamez.awardspace.com/mysql.php on line 15
Could not connect.

Any help?

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 02 October 2006 - 10:45 AM

Please post the section of code you're using to connect to the MySQL server and select the database you want to operate on.
Legend has it that reading the manual never killed anyone.
My site

#3 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 03 October 2006 - 12:01 AM

Check the relevant MySQL refman section -- there are a whole host (no pun intended) of reasons.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users