Missing /var/lib/mysql/mysql.sock file

前端 未结 8 1264
忘掉有多难
忘掉有多难 2021-02-18 14:22

I\'m trying to access mysql and when I run the mysql command, I get the following.

[root@ip-10-229-65-166 tpdatabase-1.8.0.28356]# mysql

ERR

8条回答
  •  梦如初夏
    2021-02-18 14:52

    You need to install the server package:

    sudo yum install mysql-server
    

    After installation, you have to start the service:

    sudo service mysqld start
    

提交回复
热议问题