User Tools

Site Tools


maintenance:general:tools:table_renew.pl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
maintenance:general:tools:table_renew.pl [2019/12/30 10:46] – ↷ Page moved and renamed from internal:procedures:mysql_1168_non_myisam_type to maintenance:general:tools:table_renew.pl bdorlandtmaintenance:general:tools:table_renew.pl [2024/07/03 12:31] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Error 1168 SQL MERGE non-MyISAM type ======
 +
 +When importing a database from another server with a different MariaDB version, it could happen the MERGE engine fails and therefore the task_log, action_log, node_log and job_log aren't shown from the GUI. 
 +
 +Looking at the different tables manually, (ending in 'quarter' or 'all') the following error is shown:
 +
 +<code>
 +10:30:58 Error loading schema content Error Code: 1168 Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
 +</code>
 +
 +> NOTE: ''[[maintenance:general:tools:mysql_repair.sh|mysql_repair.sh]]'' isn't able to fix this issue.
 +
 +The process to restore this has been automated into 4 steps. Depending on the size of the database, this might take a while. 
 +
 +  - ''table_renew.pl LOGS''; will dump all tables to disk, drops the tables and restores them for the LOGS database.
 +  - ''table_renew.pl NCCM''; will dump all tables to disk, drops the tables and restores them for the NCCM database.
 +  - ''logs_daily.pl''; will create the merge for the LOGS database.
 +  - ''nccm_daily.pl''; will create the merge for the NCCM database.
 +
 +Once these steps have been executed all logs are visible again. Since no data could be written to the database in the meantime, only the data from the backup is presented. From this point on, data can be stored in the databases once again.
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki