Jump to content

I need some help.


Dogboys

Recommended Posts

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?
Link to comment
https://forums.phpfreaks.com/topic/19092-i-need-some-help/
Share on other sites

[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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.