Script/mysql Issue

Joined: 11/28/2008

http://www.christian-web-masters.com/artic...ook-script.html . I'm trying to use this script and I get this error:Error: Unable to connect to MySQL server: 208.109.14.1 :
MySQL said: "Lost connection to MySQL server during query"

Can someone help me?

Joined: 11/28/2008
That second error message

That second error message normally means that MySQL is experiencing problems. Perhaps try it again a little later.

Are you sure you don't want to specify localhost as your database host?

Paul Davey
Whitford Church
"Everyone who calls on the name of the Lord will be saved." Romans 10:13
"For all have sinned and fall short of the glory of God, and are justified

Joined: 11/28/2008
Ok, I changed to local host

Ok, I changed to local host and now I get this error
Error: Unable to connect to MySQL server: localhost : 'www.loveandfaithministries.org'
MySQL said: "Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2)"

Joined: 11/28/2008
Have you used MySQL in other

Have you used MySQL in other PHP scripts on your site?

Paul Davey
Whitford Church
"Everyone who calls on the name of the Lord will be saved." Romans 10:13
"For all have sinned and fall short of the glory of God, and are justified

Joined: 11/28/2008
yes I have a login php script

yes I have a login php script on that use mysql

Joined: 11/28/2008
Have you copied your

Have you copied your connection code and details from that script?

Paul Davey
Whitford Church
"Everyone who calls on the name of the Lord will be saved." Romans 10:13
"For all have sinned and fall short of the glory of God, and are justified

Joined: 11/28/2008
bobbymac @ Jan 18 2008,
QUOTE(bobbymac @ Jan 18 2008, 10:11 PM)
Have you copied your connection code and details from that script?

not sure what you mean?

Joined: 11/28/2008
There should be lines of PHP

There should be lines of PHP code in your login script that looks something like:

CODE
mysql_connect("localhost", "username", "password");
mysql_selectdb("yourdatabase");

Have you tried copying them into the guestbook script, in place of the corresponding lines already there, and testing that?

Paul Davey
Whitford Church
"Everyone who calls on the name of the Lord will be saved." Romans 10:13
"For all have sinned and fall short of the glory of God, and are justified