SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question MySQL not working. Error: 'mysqladmin: connect to server at 'localhost' failed'

    I had managed to install MySQL successfully but after I shut down and restart, it fails. It was installed such that the SQL server would run automatically whenever the system is running. I've re-installed it once. I'm very new to web development and MySQL. Please help. I've attached the error screenshot.

    I've searched for mysqld.sock, but unable to locate it. I had set a password to access the server, which does not work anymore. Trawling the Internet has not helped. Sitepoint was recommended by the author of the book I'm referring.
    Attached Images Attached Images

  2. #2
    SitePoint Enthusiast
    Join Date
    Feb 2003
    Location
    Akron, OH, USA
    Posts
    99
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Mysql is (most likely) not running. You'll just need to run the start command to get it up and running.

    What version of linux are you running?

  3. #3
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I updated to Ubuntu 12.04 some time back...

  4. #4
    SitePoint Enthusiast
    Join Date
    Feb 2003
    Location
    Akron, OH, USA
    Posts
    99
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    The first thing I would try is to manually start the server and see if it works. If it does work, then you'll need to figure out why it doesn't startup automatically.

    This should do the trick:
    Code:
    sudo service mysql start
    You could also try:
    Code:
    sudo start mysql
    If that does not work you may want to try completely removing MySQL and starting over: http://askubuntu.com/questions/12568...stallation-etc

  5. #5
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don' know what happened but upon re-installation, it's running fine... thank you for the help...


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
  •