phpmyadmin export import way of large data files

Phpmyadmin In use, it is often required to operate import and export database.

But often only partially exported at the time of import and export large database file or part of the import.

Or import and export unsuccessful.

The reason is that the server and php, mysql limit the export import database file size. And change the appropriate configuration and is very complicated, so here is a bypass export and import size limit approach.

The idea is to directly export and import in the server above. Follows

The phpMyAdmin / config.sample.inc.php file renamed phpMyAdmin / config.inc.php open and edit

* Directories for saving/loading files from server

 */

$cfg['UploadDir'] = '';

$ Cfg [ 'MEANS'] = '';

Changed

* Directories for saving/loading files from server

 */

$cfg['UploadDir'] = 'upload';

$ Cfg [ 'MEANS'] = 'Save';

 // turn after landing if the Phone is not connected to mysql database or other problems

//将$cfg['Servers'][$i]['host'] = 'localhost';

To $ cfg [ 'Servers'] [$ i] [ 'host'] = '127.0.0.1';

After saving the file

Create two folders:

phpMyAdmin/upload/和phpMyAdmin/save/

Then you will see in the use of phpmyadmin export the database: Save option to save the directory server

When import is the same:

So that it can bypass the size and other limitations.

Pay attention to the following points:

1. After the introduction of larger export database server A general export file size at around automatically stopped 1GB, and did not complete the export database, this time data can be exported to the first server in the server B B above a View from the server using phpmyadmin export the total number of tables, and then again to export the rest of the table on the a server.

2. Export the file is too large, then the amount of time the import will occur once or several times the import is unsuccessful, you should be prompted again will be based on the same data file import will import all the data files after successfully execute it several times.

3. batch export as much as possible when export, so the exported file is relatively small, the time when the use of imported short, can damage or if there are other cases in a short time learned the exported data file.

Guess you like

Origin www.cnblogs.com/bluealine/p/11402165.html