Get the App
SLTechnology News&Howtos  ›  Database  › 

Error in the installation process of mysql [root@rhel local] # how to solve mysqld_safe

Shulou Source: shulou.com Published: 2022-05-31 17:56:30 10月27日 Update

This article introduces the relevant knowledge of "mysql installation error [root@rhel local] # mysqld_safe how to solve". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Basically follow the instructions of this link to install successfully: http://tech.sina.com.cn/s/2008-05-05/07372174929.shtml

There was only one problem with the process, and there was an error when starting mysqld:

[root@rhel local] # mysqld_safe

090624 22:09:18 mysqld_safe Logging to'/ usr/local/mysql/data/rhel.err'.

090624 22:09:18 mysqld_safe Starting mysqld daemon with databases from / usr/local/mysql/data

090624 22:09:18 mysqld_safe mysqld from pid file / usr/local/mysql/data/rhel.pid ended

The errors in the log are:

/ usr/local/mysql/bin/mysqld: File'. / mysql-bin.index' not found (Errcode: 13)

090624 22:11:15 [ERROR] Aborting

090624 22:11:15 [Note] / usr/local/mysql/bin/mysqld: Shutdown complete

090624 22:11:15 mysqld_safe mysqld from pid file / usr/local/mysql/data/rhel.pid ended

Solve by modifying directory permissions:

[root@rhel local] # chown-R mysql:mysql. / mysql

[root@rhel mysql] # mysqld_safe

090624 22:17:29 mysqld_safe Logging to'/ usr/local/mysql/data/rhel.err'.

090624 22:17:30 mysqld_safe Starting mysqld daemon with databases from / usr/local/mysql/data

This is the end of the content of "error in the installation of mysql [root@rhel local] # mysqld_safe". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Process content more knowledge practical successful successful and then dilemma reality situation articles logs time permissions cases directories editing websites industries Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Huawei Shulou Tech Info Linux Redmi