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/