Get the App
SLTechnology News&Howtos  ›  Database  › 

What about mysql startup error The server quit without updating PID file (/ usr/local/mysql/data/)

Shulou Source: shulou.com Published: 2022-05-31 15:28:23 10月03日 Update

Editor to share with you about the mysql startup error The server quit without updating PID file how to do, I believe that most people do not understand, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Mysql start error The server quit without updating PID file (/ usr/local/mysql/data/)

Reconfigure vi / etc/my.cnf join

# add: in [mysqld]:

Datadir = / usr/local/mysql/data

Log-error = / usr/local/mysql/data/error.log

Pid-file = / usr/local/mysql/data/mysql.pid

User = mysql

Tmpdir = / tmp

# Save exit

# initialize the database

. / mysql_install_db-user=mysql-basedir=/usr/local/mysql-datadir=/usr/local/mysql/data-pid-file=/usr/local/mysql/data/mysql.pid-tmpdir=/tmp

[root@localhost scripts] # service mysqld restart

Shutting down MySQL. [OK]

Starting MySQL.. [OK]

The above is all the contents of the article "what to do about mysql startup error The server quit without updating PID file". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Startup articles what to do content not much most data databases more knowledge industry information information channels channels references learning help configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Shulou Technology macOS Apple Redmi