当前位置:网站首页>[an example of MySQL startup error] innodb: failed to create check sector file, errno:13

[an example of MySQL startup error] innodb: failed to create check sector file, errno:13

2022-06-13 07:37:00 Fish is not fish

Error message

I came across one today 5.7MySQL Installation error messages , The error information is as follows :
[ERROR] InnoDB: Failed to create check sector file, errno:13 Please confirm O_DIRECT is supported and remove the file /data1/check_sector_size if it exists.
Although it does not affect the use of , But every time I start up, I have Error Report errors , I always feel that there may be problems in some aspects .

Solution

After review search , It turns out that MySQL One of the bugs.
bug Address :MySQL bug
The solution is simple :
Just put the configuration file's innodb_data_home_dir Add one at the end of the parameter value of / that will do .

# Original configuration 
innodb_data_home_dir=/data1/mysql

# Modified configuration 
innodb_data_home_dir=/data1/mysql/
# Just change to the modified configuration , This error will magically disappear 

The above solutions have been tested in the test environment and production environment, and can really solve the error .

原网站

版权声明
本文为[Fish is not fish]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202270547441653.html