h2fuelcell
Member
Hello,
We recently had a central MySQL Innodb table in our DaDaBik web application get corrupted and appear that it was dropped.
Not sure what happened but it was definitely gone. So I turned on the DaDaBik maintenance mode flag and spread the word not to use the app. We had been making a lot of code changes and tweaking schemas and records lately so when I checked, the most recent stable backup was almost 2 wees old. Not good...
When we reconstructed a create table SQL statement with all the compatible fields from the backup and then updated everything that changed since then I thought the worst was over. Well, it wasn't.
We would repeatedly get errors with foreign keys being formatted wrong or having duplicate keys when we ran the new script so the table could not be re-created.This would happen even if we removed all the foreign key constraints from the create table statement.
We looked for duplicate key names in the information_schema tables but found none there and all the field types in each foreign key referenced table matched exactly. So, it looks like MySQL has other orphaned references to the now missing table saved somewhere so it will not let us create it again. The frm and ibd table files are gone so even a lower level data restore or repair are not possible at this point.
As a result we created the missing table schema under a new table name and were able to do this. Now we just need the app to reference the new table.
How do I incorporate this change into DaDaBik as there is no option to rename tables in either the DB Synchro tab or the Data tab.
We have added dozens of charts and custom plots and made way to many changes to this app to start from scratch again so any tips on how to proceed would be appreciated.
Thanks in advance,
-Todd
Support Details:
[pre]
You are using DaDaBIK version 10.1-Manarola enterprise, installed on 05-20-2020
System info
PHP Version: 7.2.5
mysql version: 5.5.5-10.2.31-MariaDB
Web server: Apache
Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36
[/pre]
We recently had a central MySQL Innodb table in our DaDaBik web application get corrupted and appear that it was dropped.
Not sure what happened but it was definitely gone. So I turned on the DaDaBik maintenance mode flag and spread the word not to use the app. We had been making a lot of code changes and tweaking schemas and records lately so when I checked, the most recent stable backup was almost 2 wees old. Not good...
When we reconstructed a create table SQL statement with all the compatible fields from the backup and then updated everything that changed since then I thought the worst was over. Well, it wasn't.
We would repeatedly get errors with foreign keys being formatted wrong or having duplicate keys when we ran the new script so the table could not be re-created.This would happen even if we removed all the foreign key constraints from the create table statement.
We looked for duplicate key names in the information_schema tables but found none there and all the field types in each foreign key referenced table matched exactly. So, it looks like MySQL has other orphaned references to the now missing table saved somewhere so it will not let us create it again. The frm and ibd table files are gone so even a lower level data restore or repair are not possible at this point.
As a result we created the missing table schema under a new table name and were able to do this. Now we just need the app to reference the new table.
How do I incorporate this change into DaDaBik as there is no option to rename tables in either the DB Synchro tab or the Data tab.
We have added dozens of charts and custom plots and made way to many changes to this app to start from scratch again so any tips on how to proceed would be appreciated.
Thanks in advance,
-Todd
Support Details:
[pre]
You are using DaDaBIK version 10.1-Manarola enterprise, installed on 05-20-2020
System info
PHP Version: 7.2.5
mysql version: 5.5.5-10.2.31-MariaDB
Web server: Apache
Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36
[/pre]