MySQL large file import, MySQL File Import

Source: Internet
Author: User
Tags mysql command line

MySQL large file import, MySQL File Import

I usually use the Navicat for MySQL tool for import, but today I encountered a. SQL file that is too large to exceed 1 GB. When Navicat from MySQL was used for more than one hour, many errors were reported (the configuration was slightly incorrect during import, so it was finally completed ). I tried to import data in other ways. I checked one online. The original MySQL built-in import work was: source.

Start the MySQL command line program and use the use command to switch to the database to be imported. Import: source SQL file path. Press enter to start importing.

Note: The file program cannot contain spaces without double quotation marks. If it contains double quotation marks, error 22 is reported. It took less than 10 minutes to import data using source, and no error was reported.

References: http://philip.yurchuk.com/software/mysql-failed-to-open-file-error-2-and-22-on-windows/

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.