mysqld_safe Directory '/var/run/mysqld' for UNIX socket file don't exists

前端 未结 4 823
南旧
南旧 2020-12-02 03:55

While starting mysql server 5.7.17 using mysqld_safe, following error occcours.

2017-02-10T17:05:44.870970Z mysqld_safe Logging to \'/var/log/mysql/error.log         


        
4条回答
  •  天命终不由人
    2020-12-02 04:57

    You may try the following if your database does not have any data OR you have another away to restore that data. You will need to know the Ubuntu server root password but not the mysql root password.

    It is highly probably that many of us have installed "mysql_secure_installation" as this is a best practice. Navigate to bin directory where mysql_secure_installation exist. It can be found in the /bin directory on Ubuntu systems. By rerunning the installer, you will be prompted about whether to change root database password.

提交回复
热议问题