Dogboys Posted August 30, 2006 Share Posted August 30, 2006 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 55Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)Ive never had this error before and i need some helpMy 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? Quote Link to comment Share on other sites More sharing options...
tomfmason Posted August 30, 2006 Share Posted August 30, 2006 Please post the connection file. You can ommit the username and password Quote Link to comment Share on other sites More sharing options...
Dogboys Posted August 30, 2006 Author Share Posted August 30, 2006 [code=php:0]<?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.?>[/code][b]EDITED BY WILDTEEN88: Removed username and password info.[/b] Quote Link to comment Share on other sites More sharing options...
Dogboys Posted August 30, 2006 Author Share Posted August 30, 2006 That info any good? Quote Link to comment Share on other sites More sharing options...
Jenk Posted August 30, 2006 Share Posted August 30, 2006 dude.. remove your username and password before someone connects to your db and ruins your day.. Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 30, 2006 Share Posted August 30, 2006 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.