Ошибка

#
Ошибка
"2014-02-28 23:05:26",undefined,"Query error 126: Incorrect key file for table './cl201840_0/sessions.MYI'; try to repair it. Query: INSERT IGNORE INTO `sessions`
(`id`, `value`, `time`, `maxlifetime`)
VALUES  ('59a6775599088285f58013e5580b0d02', '', 1393614326, 86400)
35 modules/core/exception.php
641 modules/core/database/mysql.php
60 modules/core/querybuilder/statement.php
312 modules/core/session.php
128 modules/core/session.php
347 modules/core/core.php",
Из-за чего может быт ошибка?
Модератор
#
Re: Ошибка
Если центр администрирования работает, то через раздел SQL-запросы выполните исправление таблиц. Если нет, то через PhpMyAdmin или обратитесь в поддержку хостинга.
#
Re: Ошибка
Получаю уведомления о таких ошибках каждый день по несколько раз. Сам на них никогда не попадал. Исправление таблиц в ЦА выполнял. Ошибки не прекращаются.
Что еще предпринять?

Ошибка всегда связана с этим:
Query: SHOW FULL COLUMNS FROM `modules`
Модератор
#
Re: Ошибка
lezhenkin,
саму ошибку покажите, пожалуйста.
#
Re: Ошибка
Здравствуйте!
Только что на сайте произошло событие, информация о котором представлена ниже:
Дата: 2014-07-30 14:10:46
Событие: Query error 126: Incorrect key file for table '/var/tmp/#sql8f46_39963eee_4.MYI'; try to repair it. Query: SHOW FULL COLUMNS FROM `informationsystem_items`
35 modules/core/exception.php
641 modules/core/database/mysql.php
578 modules/core/database/mysql.php
1000 modules/core/orm.php
940 modules/core/orm.php
1219 modules/core/orm.php
111 modules/informationsystem/item/model.php
370 modules/core/orm.php
1183 modules/core/orm.php
219 modules/informationsystem/controller/show.php
188 modules/informationsystem/controller/show.php
5 hostcmsfiles/lib/lib_1/lib_config_1.php
331 modules/core/command/controller/default.php
190 modules/core/router/route.php
217 index.php
Статус события: Наивысший уровень критичности
Пользователь: undefined
Сайт: Кирпичный завод (основной)
Страница: http://www.kirpichniy.com/articles/the-vacancy-of-driver-of-the-bulldozer/
IP-адрес: 195.2.240.103
Система управления сайтом HostCMS,
http://www.hostcms.ru/
Модератор
#
Re: Ошибка
lezhenkin,
http://stackoverflow.com/questions/2090073/mysql-incorrect-key-file-for-tmp-table-when-making-multiple-joins


Sometimes when this error happens with temp tables:

#126 - Incorrect key file for table '/tmp/#sql_64d_0.MYI'; try to repair it

It can be because the /tmp folder is running out of space. On some Linux installations, /tmp is in its own partition and does not have much space - big MySQL queries will fill it up.

You can use df -h to check whether \tmp is in its own partition, and how much space is allocated to it.

If it is in its own partition and short of space, you can either:

(a) modify /tmp so that its parition has more space (either by reallocating or moving it to the main partition - e.g. see here)
(b) changing MySql config so that it uses a different temp folder on a different partition, e.g. /var/tmp
Авторизация