Welcome to WebDesignForums.net!
You're currently viewing WDF as a guest. By registering for a free account, you'll be able to participate with other members in our friendly community. Being a member allows you to ask questions and get answers for those troublesome web development tasks!

In addition, as a member you'll be able to post your websites up for review. Using our unique website review system you can gain some amazing feedback from some of the best web developers around. This is a completely free service to all registered members.

Ready to register yet? Registration is 100% free. Click Here To Join Now!

Damn mysql connect error, again !

Discussion in 'Database Systems Help' started by toadeny, Nov 26, 2003.

  1. Offline

    toadeny "I'm addicted to WDF"

    Message Count:
    188
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Wellington, New Zealand
    I have a weird problem with mysql

    I have a server running in my house that hosts the net and has apache, php and mysql running on it. I have been having some problems with mysql of late.

    This problem I have only happens when I restart the server, has happened twice.

    I type in the ip and I get

    Code:
     Warning: mysql_connect(): Can't connect to MySQL server
     on 'localhost' (10061) in c:\apache\htdocs\links\functions.php
     on line 14
    Could Not Connect To Database 
    I try to connect to mysql via command prompt and when I start the service it says its fine. I stop the service and it says it wasn’t started to begin with.

    I try from \mysql\bin\ to connect:

    Code:
    mysql –u root
    
    I get error 2003 Can't connect to MySQL server on 'localhost' (10061)

    Can anyone shed some light on this ?!

    I have restarted the server twice in 4 weeks, and have since forgotten if I did something to fix it ??? I dunno


  2. Offline

    JR New Member

    Message Count:
    4,355
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    UK
    No Idea. Maybe try doing a clean install and follow filburt's tutorial.


  3. Offline

    rosland Retired Staff

    Message Count:
    1,945
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Norway
    I did a search on Google and found a similar post somwhere else. The reply that fixed his problem (this was a windows installation though, don't know if you can access the files like this on linux if that's your OS).
    If that doesn't work, there were some additional info here


  4. Online

    Wired WDF Moderator and Alien Overlord

    Message Count:
    7,597
    Likes Received:
    133
    Trophy Points:
    63
    Yep, he's running Windows :)


  5. Offline

    rosland Retired Staff

    Message Count:
    1,945
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Norway
    Of course he is. :dead:


  6. Offline

    toadeny "I'm addicted to WDF"

    Message Count:
    188
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Wellington, New Zealand
    None of that worked.

    I can install the service, and start it, it then stops on its own after about 5 secs...

    I get the error Cannot connect to mysql server on localhost port 10061 when i try mysql -u root in the \mysql\bin directory.

    This is fully annoying me no end. i have uninstalled and installed mysql over and over.

    I feel the only remedy is to format my server....
    any ideas


Share This Page