Answer the question
In order to leave comments, you need to log in
Deleting db as folders from mariadb?
Good afternoon!
Created a test server some time ago from a backup of the sales, and it looks like the MariaDB databases have been removed just as folders from /var/lib/mysql . For a while everything worked, but the other day after the next launch of the test server, we found that mariadb does not start. When viewing the log, it turned out that mariadb suddenly "remembered" all the previously deleted database folders, and now there is a huge bunch of messages in the log like:
2022-04-08 11:01:38 139848043374784 [ERROR] InnoDB: Operating system error number 2 in a file operation.
2022-04-08 11:01:38 139848043374784 [ERROR] InnoDB: The error means the system cannot find the path specified.
2022-04-08 11:01:38 139848043374784 [ERROR] InnoDB: If you are installing InnoDB, remember that you must create directories yourself, InnoDB does not create them.
2022-04-08 11:01:38 139848043374784 [ERROR] InnoDB: Cannot open datafile for read-only: './dbname/tablename.ibd' OS error: 71
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question