Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

got error 22 from storage engine mysql

Tags:

mysql

windows

mysqldump: Error: 'got error 22 from storage engine' when trying to dump tablespaces mysqldump: Got error: 23: Out of resources when opening file '.\database\table.MYD' (Errcode: 24) when using LOCK TABLES

i got this error when trying to make a dump in any database that I select , looks like that database is corrupted , is possible repair that ?

like image 685
user2729306 Avatar asked Oct 27 '25 10:10

user2729306


2 Answers

You seem to have reached the maximum number of open files. This limit is either MySQL's or the system's.

  • increase the value for the open_files_limit in your MySQL configuration file (this directive does not exist in a default installation, so you might need to create it in the [mysqld] section)

  • increase the limit at system level (but I am not sure this applies to Windows)

like image 134
RandomSeed Avatar answered Oct 30 '25 01:10

RandomSeed


Here are some reasons for this error:

Type “source path-to-SQL-file“. BUT, you must follow these rules:
  • Use the full source command, not the . shortcut.
  • Have no spaces in your path. I copied mine to a root of a drive. Note that spaces in the file name is OK, just not the path.
  • Do not quote the file name, even if it has spaces. This gave error 22.
  • Use forward slashes in the path, e.g., C:/path/to/filename.sql. Otherwise you’ll get error 2.
  • Do not end with a semicolon.
like image 34
Diego Victor de Jesus Avatar answered Oct 29 '25 23:10

Diego Victor de Jesus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!