Периодически ломается база данных как правильно восстановить

Всё, что не подходит под вышеперечисленные разделы

Модератор: immortal

Ответить
TheForum
Сообщения: 146
Зарегистрирован: Сб авг 06, 2016 2:11 am
Откуда: Рига
Благодарил (а): 13 раз
Поблагодарили: 18 раз

Периодически ломается база данных как правильно восстановить

Сообщение TheForum » Сб янв 13, 2018 6:14 pm

Win10 pro

Вот такие дела, как починить?

Target: C:\_majordomo\htdocs/backup/20180113 Full backup: 0 Checking table [admin_users] ...OK Checking table [app_alarmclock] ...OK Checking table [app_quotes] ...OK Checking table [app_radio] ...OK Checking table [blockly_code] ...OK Checking table [cached_values] ...OK Checking table [cached_ws] ...OK Checking table [calendar_categories] ...OK Checking table [calendar_events] ...OK Checking table [charts] ...OK Checking table [charts_data] ...OK Checking table [classes] ...OK Checking table [collections] ...OK Checking table [commands] ...OK Checking table [country] ...OK Checking table [devices] ...OK Checking table [devices_linked] ...OK Checking table [elements] ...OK Checking table [elm_states] ...OK Checking table [events] ...OK Checking table [events_params] ...OK Checking table [gpsactions] ...OK Checking table [gpsdevices] ...OK Checking table [gpslocations] ...OK Checking table [gpslog] ...OK Checking table [history] ...OK Checking table [ignore_updates] ...OK Checking table [jobs] ...OK Checking table [layouts] ...OK Checking table [locations] ...OK Checking table [log4php_log] ...OK Checking table [media_favorites] ...OK Checking table [media_history] ...OK Checking table [methods] ...OK Checking table [myblocks] ...OK Checking table [myblocks_categories] ...OK Checking table [newsletter] ...OK Checking table [objects] ...OK Checking table [optimizerdata] ...OK Checking table [patterns] ...OK Checking table [performance_log] ...OK Checking table [phistory] ...OK Checking table [phistory_queue] ...OK Checking table [pinghosts] ...OK Checking table [plugins] ...OK Checking table [prod_categories] ...OK Checking table [product_categories] ...OK Checking table [product_codes] ...OK Checking table [product_log] ...OK Checking table [products] ...OK Checking table [project_modules] ...OK Checking table [properties] ...OK Checking table [public_calls] ...OK Checking table [pvalues] ...OK Checking table [readit_channels] ...OK Checking table [readit_urls] ...OK Checking table [rss_channels] ...OK Checking table [rss_items] ...OK Checking table [safe_execs] ...OK Checking table [scenes] ...OK Checking table [script_categories] ...OK Checking table [scripts] ...OK Checking table [security_rules] ...OK Checking table [settings] ...OK Checking table [shoplist] ...OK Checking table [shopping_list_items] ...OK Checking table [shoutrooms] ...OK Checking table [shouts] ...OK Checking table [system_errors] ...OK Checking table [system_errors_data] ...OK Checking table [tdwiki] ...OK Checking table [terminals] ...OK Checking table [usbdevices] ...OK Checking table [userlog] ...OK Checking table [users] ...OK Checking table [webvars] ...OK
Error
Details
http://127.0.0.1/admin.php?pd=c2NyaXB0c ... ript&id=23
145: Table '.\db_terminal\jobs' is marked as crashed and should be repaired
DELETE FROM jobs WHERE PROCESSED = 1
Backtrace
#0 C:\_majordomo\htdocs\lib\mysqli.class.php(395): custom_error->__construct('145: Table '.\\d...', 0)
#1 C:\_majordomo\htdocs\lib\mysqli.class.php(177): mysql->Error('DELETE FROM job...')
#2 C:\_majordomo\htdocs\lib\mysqli.class.php(479): mysql->Exec('DELETE FROM job...')
#3 C:\_majordomo\htdocs\scripts\startup_maintenance.php(154): SQLExec('DELETE FROM job...')
#4 C:\_majordomo\htdocs\modules\scripts\scripts.class.php(142) : eval()'d code(1): require('C:\\_majordomo\\h...')
#5 C:\_majordomo\htdocs\modules\scripts\scripts.class.php(142): eval()
#6 C:\_majordomo\htdocs\modules\scripts\scripts.class.php(172): scripts->runScript('23')
#7 C:\_majordomo\htdocs\modules\scripts\scripts.class.php(96): scripts->admin(Array)
#8 C:\_majordomo\htdocs\lib\jTemplate.class.php(711) : eval()'d code(8): scripts->run()
#9 C:\_majordomo\htdocs\lib\jTemplate.class.php(711): eval()
#10 C:\_majordomo\htdocs\lib\jTemplate.class.php(195): jTemplate->parseModules('...', Array, './templates/')
#11 C:\_majordomo\htdocs\lib\jTemplate.class.php(109): jTemplate->parse('
Немного желания, терпения и времени - и все получится :)
Аватара пользователя
sergejey
Site Admin
Сообщения: 4284
Зарегистрирован: Пн сен 05, 2011 6:48 pm
Откуда: Минск, Беларусь
Благодарил (а): 75 раз
Поблагодарили: 1559 раз
Контактная информация:

Re: Периодически ломается база данных как правильно восстано

Сообщение sergejey » Вс янв 14, 2018 9:15 am

Зайдите в phpmyadmin (http://localhost/phpmyadmin4/ имя пользователя root), зайдите в базу данных db_terminal и попробуйте выполнить операцию починки (repair) для таблицы jobs.

Сергей Джейгало, разработчик MajorDoMo
Идеи, ошибки -- за предложениями по исправлению и развитию слежу только здесь!
Профиль Connect -- информация, сотрудничество, услуги
TheForum
Сообщения: 146
Зарегистрирован: Сб авг 06, 2016 2:11 am
Откуда: Рига
Благодарил (а): 13 раз
Поблагодарили: 18 раз

Re: Периодически ломается база данных как правильно восстано

Сообщение TheForum » Сб янв 20, 2018 10:12 pm

Почему то не всегда могу восстановить. Сейчас доступна только функция FLUSH...Что делать?
Немного желания, терпения и времени - и все получится :)
Ответить