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? Link to comment https://forums.phpfreaks.com/topic/19092-i-need-some-help/ 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 Link to comment https://forums.phpfreaks.com/topic/19092-i-need-some-help/#findComment-82600 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] Link to comment https://forums.phpfreaks.com/topic/19092-i-need-some-help/#findComment-82601 Share on other sites More sharing options...
Dogboys Posted August 30, 2006 Author Share Posted August 30, 2006 That info any good? Link to comment https://forums.phpfreaks.com/topic/19092-i-need-some-help/#findComment-82606 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.. Link to comment https://forums.phpfreaks.com/topic/19092-i-need-some-help/#findComment-82681 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. Link to comment https://forums.phpfreaks.com/topic/19092-i-need-some-help/#findComment-82749 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.