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 
advanced guestbook mysql connection error  XML
Forum Index » Support Forum
Author Message
Anonymous



I keep getting the following connection error. I've created all the tables and inserted the values, but cannot run admin.php or any of the php files.

Here's the error:

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /www/hosts/com/m/markshost/docs/guestbook/lib/mysql.class.php on line 30

Any help would really be appreciated..

Mark
Anonymous



Fixed the earlier problem (the 'host' was not correct -- my virtual host needs to be pointed to a specific server).

Anyway, one step closer.. but the next problem is that index.php won't run:

MySQL Error : Query Error
Error Number: 1064 You have an error in your SQL syntax near '' at line 1
Date : Mon, January 28, 2002 00:46:26
IP : [omitted]
Browser : Mozilla/4.0 (compatible; MSIE 5.5; Windows 9
Referer :
PHP Version : 4.0.3
OS : Linux
Server : Apache/1.3.14 (Unix) PHP/4.0.3 mod_ssl/2.7.1 OpenSSL/0.9.6

Am I supposed to be editing anything other than config.inc.php ?? All I changed in config.inc.php was the first four entries (dbName, host, user, and pass).

I get the same error when I try to use "Easy Admin", or "Private Messages" from admin.php. Also, none of my settings get saved except for my username and password from the admin utility.

The addentry.php sort of works (it parses fine but I can't actually add messages, as it says "too short or too long" no matter what I enter..probably because none of my settings get saved in the admin util).

Anyway.. please help! This is an amazing guestbook and I've spent all night trying to get it working.

Mark
Anonymous



remove all tables and re-install it
Anonymous



mark wrote:I keep getting the following connection error. I've created all the tables and inserted the values, but cannot run admin.php or any of the php files.

Here's the error:

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /www/hosts/com/m/markshost/docs/guestbook/lib/mysql.class.php on line 30

Any help would really be appreciated..

Mark



Mmmm, I'm getting the same error running the guestbook as a module on phpNuke 7.3 using the right blocks visible. If not visible everything seems to work fine. No problems logging in as administrator.

No solution so far.

Robbie
sadiki
Newbie

Joined: 18/07/2004 03:43:11
Messages: 2
Offline

I am getting this error when i try to install Advance guest book . Can someone please help!

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/hsphere/local/home/XXXXX/XXXXXXX/guestbook/install.php on line 242
Cannot connect to database
--------------------------------------------------------------------------------

MySQL Error : Cannot connect to database
Error Number: 2002 Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Date : Mon, August 16, 2004 13:05:55
IP : 4.138.102.191
Browser : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt; .NET CLR 1.1.4322)
Referer : http://www.abassoc-ga.org/guestbook/install.php
PHP Version : 4.3.6
OS : Linux
Server : Apache/1.3.31 (Unix) mod_throttle/3.1.2 PHP/4.3.6 mod_ssl/2.8.18 OpenSSL/0.9.6b FrontPage/5.0.2.2635
Server Name :
Carbonize
Master
[Avatar]

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

sadiki as Mark has aalready said the problem is you have the server name wrong. CHeck you haven't spelt it wrong or if you need to specify the exact server location.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
sadiki
Newbie

Joined: 18/07/2004 03:43:11
Messages: 2
Offline

I still canot get it. I keep getting the same error


Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/hsphere/local/home/abassoc-/abassoc-ga.org/guestbook/install.php on line 242
Cannot connect to database
--------------------------------------------------------------------------------

MySQL Error : Cannot connect to database
Error Number: 2002 Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Date : Mon, August 16, 2004 21:26:13
IP : 4.138.73.138
Browser : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt; .NET CLR 1.1.4322; MSN 9.0;MSN 9.1; MSNbMSNI; MSNmen-us; MSNcIA; MPLUS)
Referer : http://www.abassoc-ga.org/guestbook/install.php
PHP Version : 4.3.6
OS : Linux
Server : Apache/1.3.31 (Unix) mod_throttle/3.1.2 PHP/4.3.6 mod_ssl/2.8.18 OpenSSL/0.9.6b FrontPage/5.0.2.2635
Server Name : abassoc-ga.org
Carbonize
Master
[Avatar]

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

This is one you will have to speak to your hosts about as it's not a problem with the script.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum