Optimize the speed of importing data to MARIADB, Mysql (InnoDB)

Source: Internet
Author: User
Tags heidisql

Key configuration: Turn off Binlog

Environment: 8G SQL file, more than 300 InnoDB data sheets,( with mysqlworkbench exported data, with Heidisql import, because the formal environment is MySQL, can be used mysqlworkbench, and MARIADB can not use the export, to use Heidisql, directly with the mysqldump, the source command is also possible ). Export takes 6 minutes, import takes 55 minutes (need to improve, follow up)

Version: MariaDB 10


1. Note "Log-bin=mysql-bin", "binlog_format=mixed"

2. "innodb_flush_log_at_trx_commit" is set to "2"

3. After the import is complete, be sure to remember to set the original




Export command with Mysqlworkbench generated

18:24:07 Dumping XXXXXX (all tables)
Running:mysqldump.exe--defaults-extra-file= "c:\users\admini~1\appdata\ Local\temp\2\tmpo4jjp3.cnf " --user=root--max_allowed_packet=1g--host=localhost--port=3306-- Default-character-set=utf8--routines " XXXXXX "
18:30:11 Export of D:\ xxxxxx  . sql Has finished

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.