Cannot find mysql.sock

前端 未结 14 1281
一向
一向 2020-12-04 11:20

I just had to re-install mysql and I am having a problem starting it up. It cannot find the socket (mysql.sock). The problem is that neither can I. In my Mac OS X 10.4 te

14条回答
  •  执念已碎
    2020-12-04 11:51

    I couldn't find mysql socket at all so reinstalled mysql server(all tables and phpmyadmin settings were preserved). Here are the commands:

    1) Install

    sudo apt-get install mysql-server

    2) Follow terminal configuration steps

    sudo mysql_secure_installation

    3) Check status: (Should return "Active: active (running)")

    systemctl status mysql.service

提交回复
热议问题