This article mainly introduces the relevant solution process for the failure to start the MySQL configuration file my.cnf due to permission problems. It is shared for your reference and learning. Let's take a look at the detailed introduction below: Problem Description MySQL cannot start and reports the following error: Problem Analysis Checking the MySQL error log, I found the following error (prompting that the host table of the MySQL library cannot be opened): View the /etc/my.cnf configuration file: Go to the directory where the MySQL database is located to check whether the table exists: I found that the host table of the MySQL library does exist, so why does it say that it does not exist? The problem should be with the /etc/my.cnf file. You can also see the warning message from the first screenshot (/etc/my.cnf is ignored) The original file permission was set to 777, which was ignored by MySQL due to security issues. So when I queried the default database storage path, I found that there was no host table for the MySQL library, which caused the startup to fail: Solution Change the permissions of /etc/my.cnf to 644, and then start MySQL: Summarize The above is the full content of this article. I hope that the content of this article can bring some help to your study or work. If you have any questions, you can leave a message to communicate. Thank you for your support of 123WORDPRESS.COM. You may also be interested in:
|
<<: Basic knowledge of load balancing and a simple example of load balancing using nginx
>>: Vue based on Element button permission implementation solution
1. First check whether the system has mysql insta...
Problem description: I bought a Mac and installed...
In enterprises, database high availability has al...
Hello everyone, today we will talk about how to u...
This article records the installation and configu...
Table of contents 1. Constructor and instantiatio...
The content involved in Web front-end development...
When using setinterval, it is found that it will ...
Preface Normal business needs: upload pictures, E...
Today I am a little confused about <a href=&quo...
Table of contents Preface 1. The request content ...
<textarea></textarea> is used to crea...
React native implements the monitoring gesture to...
Preface In a common business scenario, we need to...
1. Understand the WEB Web pages are mainly compos...