MySQL - ошибка myisamchk - error - myisam sort buffer size is too small

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

MySQL - ошибка myisamchk - error - myisam sort buffer size is too small

Если при восстановлении таблицы через команду:

# myisamchk -r -f mybb_posts.MYI

мы получаем ошибку вида:

myisamchk: error: myisam_sort_buffer_size is too small
MyISAM-table 'mybb_posts.MYI' is not fixed because of errors
Try fixing it by using the --safe-recover (-o), the --force (-f) option or by not using the --quick (-q) flag


то решением будет поднять параметр --sort_buffer_size через консоль, а именно:

# myisamchk -r -f mybb_posts.MYI  --sort_buffer_size=2G
- recovering (with sort) MyISAM-table 'mybb_posts.MYI'
Data records: 0
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5
- Fixing index 6
- Fixing index 7