If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Help! Can't connect to MySQL server on 'localhost'

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-13-08, 04:02
coderJ coderJ is offline
Registered User
 
Join Date: Mar 2008
Posts: 3
Help! Can't connect to MySQL server on 'localhost'

Hi all experts,

I know this question was asked many times before but I couldn't find a solution that works for me.
I've installed an apache server (2.2.6), PHP (5.2) and MySQL (5.0.45) in my windows XP SP2.
I've configured everything as needed (or at least I think so)
and tested my MySQL with a small php page on the localhost but the browser showed the error:

"Can't connect to MySQL server on 'localhost' (10061)"

I've tried many things but and now I'm pretty stuck. Is Navicat (www.navicat.com) a good try?

thanks.
Reply With Quote
  #2 (permalink)  
Old 03-13-08, 05:03
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,262
is the server active on start up
look in the task manager and look for mysqld-nt.exe.. if its running it proves MySQL is active
download the MySQL GUI Tools, open either adnministrator or query browser, see if they can talk to the server.
if they can talk to the server then its not a firewall/system problem, its probably a php installation / configuration problem

run a php script using the function phpinfo() and examine the output, that will tell you what db's PHP is configured to use.

if its a php problem then the best thing to do would be to mnove this to the PHP forum. perhaps if you try these, and any other suggestions and come back

HTH

after that it may be worth while comong back here, as it may well be
Reply With Quote
  #3 (permalink)  
Old 03-14-08, 03:07
coderJ coderJ is offline
Registered User
 
Join Date: Mar 2008
Posts: 3
thank you for your advice and I just able to connect to the server after checking the server setting.
btw, Navicat really help me to manipulate the server easily.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On