Import 5GB .SQL file to MySQL Database

I have very large .sql files that contain tens of millions of "insert" queries; the queries as example:

use x; insert into table1 (xxx,zzz) values ('aaa', 'bbb');

use x; insert into table22 (xxx,zzz) values ('aaa', 'bbb');

use y; insert into table1 (xxx,zzz) values ('aaa', 'bbb');

use g; insert into table5 (xxx,zzz) values ('aaa', 'bbb');

and so on... millions of these rows have been found in the file, and it has to enter data to multiple databases and multiple tables inside each database.

So, I tried to upload these files using the following ways, but all of them required a real huge time, and all these ways was capable to insert only 1200 - 2000 rows per 1 minute. So, it is not perfect solution for me, because I'll need tens of thousands of hours to complete all the rows.

The ways:

1- I tried to use PHPMyAdmin import stage to upload these files, and I have changed all the resources in [url removed, login to view] and [url removed, login to view] to unlimited values, but the import was very slow, about 1200 - 2000 rows per 1 minute.

2- I tried to use shell commands to import these files, and the speed was same, about 1500 per minute.

3- I used [url removed, login to view], and the speed was same!!!.

4- I built a php script to enter these rows, but it takes 1 minute to insert 1200 rows. Same!!!

Note: the size of each file is about 500 MB, but it doesn't matter, because when I tried to upload only 16MB, I got the same results, 1500 or 2000 rows per 1 minute.

Anyways, If you have a perfect way to upload these files in reasonable time, please bid on this project, and I'll provide you the details using PMB.


1- I'll provide you a test .sql file of 500 MB to upload it for me, and you should give me a feedback about the speed. This is something like DEMO!, and I won't pick you without see a successfull demo.

2- I use a localhost server not online hosting. It is Apache 2.5.8.

Compétences : Apache, MySQL, Oracle, Script Shell, SQL

en voir plus : mysql import 5gb database, 5gb sql import, import 5gb sql file mysql, import 5gb mysql database, mysql 5gb database import, sql file mysql apache, php script mysql database import sql file, import 5gb sql, mysql import 5gb sql file, shell script import multiple sql mysql, 5gb sql file, import 5gb sql file, 5gb sql database import, import 5gb database, sql file, upload sql file, mysql database import 5gb, sql to oracle, online oracle database, mysql database server, my sql databases, data stage 8.1, import 5gb mysql database mysql, mysql import 5gb sql, mysql import 5gb database time

Concernant l'employeur :
( 10 commentaires ) ankra, Iraq

Nº du projet : #1080336

Décerné à:


I can do this for you. See PM for details.

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% USD en 1 jour
(60 Commentaires)

5 freelance font une offre moyenne de $48 pour ce travail


Hello Sir. I can do this in about an hour right on your server.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(4 Commentaires)

Will you please provide me one file to check before going to final deal.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(16 Commentaires)

Ready to start when you are

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(3 Commentaires)

Solution is ready. Please check your PM

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(0 Commentaires)

Please check PM.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)