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

前端 未结 8 1218
忘掉有多难
忘掉有多难 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:46

    Before hitting mysql on command prompt make sure your correct my.cnf configuration file is in placed and set the permission of etc folder as

    chmod -R 777

    etc folder as below list to avoid

    error MySQL - ERROR 2002 (HY000): e.g /etc/my.cnf, /etc/mysql/my.cnf, $MYSQL_HOME/my.cnf [datadir]/my.cnf ~/.my.cnf

提交回复
热议问题