If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Adv. Guestbook MySQL Connection Error  XML
Forum Index » Support Forum
Author Message
cdnmama
Beginner

Joined: 12/05/2004 20:45:53
Messages: 42
Location: Ontario, Canada
Offline

Hello....I was adding the mod for 'logging the IP rather than the hostname' on the guestbooks I maintain. I got to guestbook number 4, edited the add.class.php file and uploaded it. I then opened the guestbook in my browser and I got this error.....

Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/***/public_html/guestbook/lib/mysql.class.php on line 30

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/***/public_html/guestbook/lib/mysql.class.php on line 30
Connection Error

I didn't have a problem with the first 3 books so I wonder if this is a server problem instead of from editing the add.class.php file? I haven't looked at that guestbook for awhile. The server is using PHP Version : 4.1.1

Any ideas? Thanks for any help

Deb

http://weeinspirations.com
http://dreamworkdesigns.com
http://debsdesignandhosting.com
[WWW]
Anonymous



Are you sure you have the path to the document root set correctly? Seems the most likely problem. Are all the other guestbooks on the same webhost?

I always run a little basedir script to get this information correct from webhost to webhost - saves me a lot of work and frustrations.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

download the files again and reupload the original of the file you editted. If it still errors then we know it was your host.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
cdnmama
Beginner

Joined: 12/05/2004 20:45:53
Messages: 42
Location: Ontario, Canada
Offline

Thanks for the replies....the book that is erroring, is on a different server than the others. I think the server is the problem now, as I can't login into phpMyAdmin. I'm getting an error there too. Time to fire off an email to support

thanks again

http://weeinspirations.com
http://dreamworkdesigns.com
http://debsdesignandhosting.com
[WWW]
ET
Graduate

Joined: 21/02/2003 22:17:48
Messages: 179
Offline

Yep - probably a server / host issue - especially if the script was working fine and the only thing you were doing was modifying a few lines.... The only other time I will see that error is if a webmangler changes his account password but doesn't change the password in a script's config file that contains the MySql path and password....

---------------
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum