HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
msyql connect error
Post new topic   Reply to topic    HTML Help Forum Index -> PHP
View previous topic :: View next topic  
Author Message
LAN_Rover



Joined: 06 Feb 2006
Posts: 19
Location: Petawawa, Ontario, CANADA

PostPosted: Thu Dec 20, 2007 7:46 pm     msyql connect error Reply with quote

i'm adding a membership logon, with a database, to my groups website and i'm having issues connecting to the mysql server.

when i log in, i get the following error:
Code:
Could not connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)


but i know the connection works, because if i enter the wrong password/username combination i get the appropriate error which means the website is connecting to mysql no probs since logon info is in a database table.

so... i suspect the issue may be related to sub-directory:

/public/index.php <-- website home page (obviously)
/public/membership.php <-- membership page (and logon)
/public/membership/index.php <-- mysql error when this page loads, and attempts to open the database

any ideas?
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial