Attempting to restore a database backup in MySQL, you may run across a restore failure referencing certain tables. These tables may change but at the very bottom of the error you will see "MySQL has gone away".
This error occur when attempting to restore a table with larger queries. These can be resolved by tuning the my.ini file accordingly.
- Stop any running services, including the internal database.
- Backup the install path for the internal database. By default, this located at C:\ProgramFiles(x86)\DocuWare\InternalDatabase\. (This location may be different if changed during install)
- Open the my.ini file located in the root of the above path in a text editor.
- Search for "max_allowed_packet". By default, this value is set to 4M. Change this to 40M. (If this value does not work, you may increase further).
- Open the Internal Database data folder. By default, this is located C:\ProgramFiles(x86)\DocuWare\InternalDatabase\Data\. (This location may be different if changed during install)
- Delete the following files:
- Start internal database. This may take slightly longer than normal as it is recreating the log files.
- Once started, attempt the restore of the database again. As previously mentioned, if this still fails, please increase the value from Step 4.