Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Page 1 of 2 12 LastLast
Results 1 to 8 of 9
  1. #1
    kzo
    kzo is offline Registered User
    Join Date
    Apr 2001
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy

    The first day I installed this it was running great with apache and php. But now it doesn't run.
    When I type >mysql in the terminal it says:
    ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
    I did a search using find / -name "mysql.sock" and it doesn't exist. Nothing came up.

    I don't know what to do, please help.
    thanks

    kzo

  2. #2
    fee-5 is offline Registered User
    Join Date
    Apr 2001
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    is the server running?

    Make sure you actually have mysql running.

    From the command line:

    % ps aux | grep 'mysql'

    This will show you all the mysql processes that are currently running.

    If the mysql server isn't running:

    % safe_mysqld

    This will seem to "freeze" the terminal, but that's normal. It means that you've started mysql under that login.

    Hope this helps.

    --
    fee-5

    PS: Unless you have mysql set up to start every time the box boots, you'll have to restart it manually with "safe_mysqld" every time.

  3. #3
    kzo
    kzo is offline Registered User
    Join Date
    Apr 2001
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking

    wow that was simple enough.

    thank you

  4. #4
    Tyler is offline Senior Member
    Join Date
    Sep 2000
    Location
    Salt Lake City
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    If you decide not to have mysql start up automatically when you reboot, a better way to start it is....

    % safe_mysqld &

    Which will start mysqld as a background process -- leaving your terminal window available for other commands.


    Tyler



  5. #5
    rharder's Avatar
    rharder is offline Do not read this sign.
    Join Date
    Mar 2001
    Location
    Virginia, USA
    Posts
    1,189
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Would he have to type "nohup safe_mysqld &" to make sure the process doesn't die when the Terminal window gets closed?

    -Rob

  6. #6
    Snowman is offline Registered User
    Join Date
    Apr 2001
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yeah that too

  7. #7
    catnip is offline Registered User
    Join Date
    Sep 2001
    Location
    San Jose, ca
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, but I'm getting this same error message, and I do get something back from :

    ps aux | grep 'mysql'

    and the result is:
    steve 1184 0.0 0.1 5768 104 std RV 0:00.01 grep mysql

    but, when I try to access my DB, I get:
    ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

    there was a lot of great information about starting the server if it isn't running, but what can I do in my situation? every time I reboot this happens, and I know there's gotta be a way to fix this, isn't there??

    thanks
    -Steve

  8. #8
    cavneb's Avatar
    cavneb is offline Registered User
    Join Date
    Aug 2001
    Location
    UK
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    i am having the same problem

    i am having the exact same problem...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Are there any MySQL installs that actually work?
    By David Rodger in forum Mac OS X System & Mac Software
    Replies: 15
    Last Post: March 30th, 2003, 01:56 AM
  2. MySQL install problems
    By svenrg in forum Unix & X11
    Replies: 2
    Last Post: November 21st, 2002, 10:08 PM
  3. MySQL & StartupItems Problem
    By turbine in forum Unix & X11
    Replies: 2
    Last Post: September 27th, 2002, 10:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •