Crash When Importing MySQL DB
hpuhr opened this issue · comments
A user reported an issue when creating a new MySQL database and importing an MySQL Verif database.
"
...
[INFO] TaskManagerWidget: setCurrentTask: task 'MySQLDBImportTask' can run 1 done 0 is recommended 1
[INFO] TaskManagerWidget: runCurrentTaskSlot
[INFO] TaskManager: runTask: name MySQLDBImportTask
[INFO] MySQLDBImportTask: run: filename /home/sassuser/path/exported.sql.gz
[INFO] MySQLDBImportJob: importSQLArchiveFile: importing /home/sassuser/path/exported.sql.gz
[INFO] MySQLDBImportJob: importSQLArchiveFile: importing /home/sassuser/path/exported.sql.gz raw 1
[INFO] MySQLDBImportJob: importSQLArchiveFile: archive file found: data size 0
Segmentation Violation (core dumped)
"
In the authors setup the issue could not be reproduced. The users setup was in CentOs 7 and MariaDB 5.5.
A workaround was used:
- Manually extract the exported.sql file
- Manually create an empty database
- Manually import the extract SQL file into the newly create database
- Then open with ATSDB and proceed as normal
(see https://stackoverflow.com/questions/17666249/how-do-i-import-an-sql-file-using-the-command-line-in-mysql)
To be investigated/confirmed when reported by other users.
Found the error - it was a combination of an uninitialized variable that only sometimes showed up.