Start Free Trial
Come for the solution, stay for everything else.
Start Free Trial
MySQL InnodDB Import from mysqldump takes forever.
I have a problem with my Mysql DB (InnodDB tables). I'll take mysqldump backups every 12 hours with the following command:
upConf --host=localhost --result-file $MySqlBackupFile --default-character-set=ut
f8 --events --triggers --routines --single-transaction=TRUE --log-error=$MySqlBackupLo
gFile --verbose $Item
Backup takes 8 minutes, size is about 2.4GB
The resotre is made with the Data Import from Workbench but it takes long, long, long... (5-6 hours or more):
f" --protocol=tcp --host=localhost --user=root --port=3306 --default-character-set=ut
f8 --comments --database=database_2 < "C:\\Users\\user\\Document
The OS is Windows Server 2012 R2, Mysql 5.7.16. I tried the following settings but no change:
mmit = 0
innodb_write_io_threads = 12
SET GLOBAL FOREIGN_KEY_CHECK=0
Can anyone help with this?
Windows Server 2012
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Log in or sign up to see answer
Become an EE member today
7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Thx. Acctually in the and was the SET unique_checks=0; what helped. Still it takes 1 hour to import a 2.4GB backup sql. So, I guess I have to refactor the database structure.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
Plans and Pricing
Certified Expert Program
© 1996-2022 Experts Exchange, LLC. All rights reserved. Covered by US Patent