Jump to content


Photo

I need some help.


  • Please log in to reply
5 replies to this topic

#1 Dogboys

Dogboys
  • Members
  • PipPipPip
  • Advanced Member
  • 44 posts

Posted 30 August 2006 - 03:41 AM

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/www/mysite.com/connect.php on line 55
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Ive never had this error before and i need some help

My database name is pugs which turns into dogboys_pugs and the username is the same as database.

So i do dogboys_pugs for databse and username when i do it. and the password is right also. What am i doing wrong?

#2 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 30 August 2006 - 03:45 AM

Please post the connection file. You can ommit the username and password

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#3 Dogboys

Dogboys
  • Members
  • PipPipPip
  • Advanced Member
  • 44 posts

Posted 30 August 2006 - 03:47 AM

<?php // config.php :: Low-level app/database variables.

$dbsettings = Array(
        "server"        => "localhost",     // MySQL server name. (Default: localhost)
        "user"          => "****",              // MySQL username.
        "pass"          => "****",              // MySQL password.
        "name"          => "dogboys_pugs",              // MySQL database name.
        "prefix"        => "dk",            // Prefix for table names. (Default: dk)
        "secretword"    => "***");             // Secret word used when hashing information for cookies.

?>

EDITED BY WILDTEEN88: Removed  username and password info.

#4 Dogboys

Dogboys
  • Members
  • PipPipPip
  • Advanced Member
  • 44 posts

Posted 30 August 2006 - 04:02 AM

That info any good?

#5 Jenk

Jenk
  • Members
  • PipPipPip
  • Advanced Member
  • 778 posts

Posted 30 August 2006 - 09:11 AM

dude.. remove your username and password before someone connects to your db and ruins your day..




#6 AndyB

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

Posted 30 August 2006 - 12:36 PM

Please post some actual code where you are attempting to connect to your database ... presumably that's where the error is arising, not the configuration file.
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users