Usergroup: Member
Joined: Nov 03, 2003
Total Topics: 1
Total Posts: 2
Posted 11/16/04 - 06:38 AM:
#1
My site is connecting to the database at index.php and displaying categories and links. But loading suggest.php causes the following error:
Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/fhlinux193/b/buyitat.com/user/htdocs/db.inc on line 73 Database error: connect(localhost, buyitat, $Password) failed. MySQL Error: () Session halted.
Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 56
Total Posts: 5844
Posted 11/17/04 - 04:53 PM:
#2
Why do you have pconnect there?
_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Usergroup: Member
Joined: Nov 03, 2003
Total Topics: 1
Total Posts: 2
Posted 11/25/04 - 04:38 AM:
#3
Still does it when I change db.inc line:
mysql_pconnect
to
mysql_connect
see error below
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/fhlinux193/b/buyitat.com/user/htdocs/db.inc on line 73 Database error: connect(localhost, buyitat, $Password) failed. MySQL Error: () Session halted.
Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 56
Total Posts: 5844
Posted 11/26/04 - 03:44 PM:
#4
What script are you using? There is not db.inc file that I know of.
Anyhow, it means that the database can't be reached. Either the info is wrong or the database is dead.
_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat