Translator
      English flagItalian flagKorean flagChinese (Simplified) flagChinese (Traditional) flagPortuguese flagGerman flagFrench flag
      Spanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flag
      Croatian flagDanish flagFinnish flagHindi flagPolish flagRomanian flagSwedish flagNorwegian flag
      Catalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flag
      Slovenian flagUkrainian flagVietnamese flagAlbanian flagEstonian flagGalician flagMaltese flagThai flag
      Turkish flagHungarian flagBelarus flagIrish flagIcelandic flagMacedonian flagMalay flagPersian flag
    Tag Cloud
    Sponsors
    Recent Comments
      Archives
      Link with us

      IT Solutions Knowledge Base

      Visitors

      Today Visitors: 147
      Currently Online: 10

      256-bit Secured



Exporting & Importing Large MySQL Databases
Home » Linux, WHM/Cpanel » Exporting & Importing Large MySQL Databases
By Glafkos Charalambous | No CommentsLeave a Comment
Last updated: Monday, December 22, 2008

This article will deal with the export and import of mysql databases and solving a common import problem of huge mysql database files that they cannot be imported into mysql if they are large enough due to time limits and other restrictions.

Export MySQL Database with mysqldump:

mysqldump -u username -ppassword database_name > export.sql

Import MySQL Database with mysql:

mysql -u username -ppassword database_name < export.sql

Importing very large MySQL Database using BigDump Importer:

Download BigDump v0.29b from: http://www.ozerov.de/bigdump.php

Usage:

Edit bigdump.php and modify your database connectivity

// Database configuration
$db_server   = ‘localhost’;
$db_name     = ‘dbname’;
$db_username = ‘dbusername’;
$db_password = ‘dbpassword’;

Browse to bigdump.php file

http://localhost/bigdump.php

In case you want the upload option available you will need to give write permissions to your current directory

chmod 777 dir

Example Preview:

Clicking on Start Import option you can start importing your database.

In case you want to specify the file from within bigdump.php file you need to edit the follow line:

$filename = ”; // Specify the dump filename to suppress the file selection dialog

You can import the following .gz, .sql and .csv file extensions only.

Results of the import: (2.5GB size and about 32Million Records)

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
  • Digg
  • Facebook
  • Technorati
  • del.icio.us
  • StumbleUpon
  • Sphinn
  • Reddit
  • Google Bookmarks
  • Wikio IT
  • Slashdot
  • co.mments
  • Fark
  • Fleck
  • LinkedIn
  • Ma.gnolia
  • MySpace
  • Propeller
  • Print
  • email

Comments

There are no comments just yet

Leave a Comment

Add your picture!
Join Gravatar and upload your avatar. C'mon, it's free!