SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Error Connecting to MySQL Server: DYO DB Website PHP & MySQL

  1. #1
    SitePoint Member
    Join Date
    Mar 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Error Connecting to MySQL Server: DYO DB Website PHP & MySQL

    I am using a Mac OSX apache server and a UNIX shell.

    First I start my server by typing: sudo /usr/local/mysql/bin/mysqld_safe
    and in return I get this..

    110325 00:45:32 mysqld_safe Logging to '/usr/local/mysql/data/machine.local.err'.
    110325 00:45:32 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
    110325 00:47:12 mysqld_safe mysqld from pid file /usr/local/mysql/data/machine.local.pid ended


    Then I type: mysqladmin status
    This is the message I get in return...

    mysqladmin: connect to server at 'localhost' failed
    error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
    Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!

  2. #2
    SitePoint Wizard
    Join Date
    Dec 2003
    Location
    USA
    Posts
    2,582
    Mentioned
    29 Post(s)
    Tagged
    0 Thread(s)
    The second message is because the server isn't starting, so that's easy.

    Now, the first part there could be a lot of problems. If this is something you just installed, I'd recommend uninstalling and reinstalling it.

    If you can't do that, have you changed anything since you last ran it? Are you very low on hard disk space?

  3. #3
    SitePoint Member
    Join Date
    Mar 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face

    It did work at one point. I don't believe I changed anything, although I went back and reviewed everything I did and I might of accidentally done something I shouldn't have....

    How do I uninstall everything?
    Thanks!!

Tags for this Thread

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
  •