Mike XenForo developer Staff member Apr 1, 2016 #21 You can pass in the --single-transaction option to disable the table locks. (As most of the DB is InnoDB and these tables are independent, it's not a big deal to lose a small amount of consistency in them.)
You can pass in the --single-transaction option to disable the table locks. (As most of the DB is InnoDB and these tables are independent, it's not a big deal to lose a small amount of consistency in them.)
teletubbi Well-known member Apr 1, 2016 #22 Mike said: As most of the DB is InnoDB and these tables are independent Click to expand... As i understand he has no InnoDB only Myisam
Mike said: As most of the DB is InnoDB and these tables are independent Click to expand... As i understand he has no InnoDB only Myisam
Paul B XenForo moderator Staff member Apr 1, 2016 #23 This is what I use: Dump: Rich (BB code): mysqldump -udatabase_user -p --single-transaction --skip-lock-tables database_name > /path/to/backup/database_name_$(date +%d.%m.%y).sql Zip: Rich (BB code): tar -czf database_name_$(date +%d.%m.%y).tar.gz /path/to/backup/database_name_$(date +%d.%m.%y).sql Restore: Rich (BB code): mysql -udatabase_user -p database_name < backup.sql
This is what I use: Dump: Rich (BB code): mysqldump -udatabase_user -p --single-transaction --skip-lock-tables database_name > /path/to/backup/database_name_$(date +%d.%m.%y).sql Zip: Rich (BB code): tar -czf database_name_$(date +%d.%m.%y).tar.gz /path/to/backup/database_name_$(date +%d.%m.%y).sql Restore: Rich (BB code): mysql -udatabase_user -p database_name < backup.sql