Skip to main content

Mysql fails to start

Comments

9 comments

  • cPRex Jurassic Moderator

    Hey there!  The main issue here seems to be the creation of the MySQL socket file in /var/lib.  Can you share the output of these commands?

    ls -lah /var/lib/mysql/mysql.*
    ls -ld /var/lib/mysql/
    ls -ld /var/lib/
    0
  • gizmo80

    ls -lah /var/lib/mysql/mysql.*
    srwxrwxrwx 1 mysql mysql 0 Aug 27 03:59 /var/lib/mysql/mysql.sock
    -rw------- 1 mysql mysql 0 Aug 28 03:54 /var/lib/mysql/mysql.sock.lock

    ls -ld /var/lib/mysql/
    drwxr-x--x 203 mysql mysql 12288 Sep  3 21:53 /var/lib/mysql/

    ls -ld /var/lib/
    drwxr-xr-x. 42 root root 4096 Sep  3 03:52 /var/lib/

    0
  • cPRex Jurassic Moderator

    Thanks for sharing that - that all *looks* fine to me - can you try running this one as well to see if that works properly?

    touch /var/lib/mysql/testfile
    0
  • gizmo80

    result
    [root@qhbm001 ~]# touch /var/lib/mysql/testfile
    [root@qhbm001 ~]#

    I then went to /var/lib/mysql/ and it contains testfile
    -rw-r--r-- 1 root  root     0 Sep  3 22:08 testfile

     

    0
  • cPRex Jurassic Moderator

    I'm not sure why it's complaining about that sock file from that output then.  It would likely be best to create a ticket so this can be investigated directly on the server.

    0
  • gizmo80

    ok thanks cPRex, seems I have a Partner Supported License and should contact my host

    0
  • cPRex Jurassic Moderator

    They should be able to get it going for you!

    0
  • RabattDigga DE

    Looks like MySQL is failing because of a bad socket lock file—try deleting /var/lib/mysql/mysql.sock.lock and restarting the service.

    1

Please sign in to leave a comment.