954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

mysql_connect is not working

Hi

mysql_connect is not working though mysqli_connect is working.

Both are enabled in configuration file.

Please help.

Thanks

amazed
Newbie Poster
11 posts since Sep 2010
Reputation Points: 20
Solved Threads: 0
 

What error message does it return ?

pritaeas
Posting Expert
Moderator
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

Hi

mysql_connect is not working though mysqli_connect is working.

Both are enabled in configuration file.

Please help.

Thanks


If I use this

localhost:/tmp/mysql5.sock

instead of localhost then it works.

Thanks

amazed
Newbie Poster
11 posts since Sep 2010
Reputation Points: 20
Solved Threads: 0
 

hi,
As i m not able to understand Ur prob clearly. So for the same,you can use die()function to understand the mysql error while connecting....

monica singh
Light Poster
48 posts since Oct 2010
Reputation Points: 11
Solved Threads: 10
 

humm correct,
i admit with monica singh.

you should have to use die() function on query running time.

jogesh_p
Junior Poster in Training
68 posts since Sep 2010
Reputation Points: 16
Solved Threads: 6
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: