Skip to content

Instantly share code, notes, and snippets.

@esilvas
Created September 7, 2012 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esilvas/3666021 to your computer and use it in GitHub Desktop.
Save esilvas/3666021 to your computer and use it in GitHub Desktop.
Import MySQL Files

Import MySQL Database File (large or small)

MySQL Prompt

In order to import data dump files, I have started using the native MySQL import feature from within the application.

Login to MySQL:

$ mysql -umyuser -pmypassword

Select your database and then give MySQL the path to your data file.

mysql> use mydb;
mysql> source /path/to/my/data.sql;

Done. Really simple. Love MySQL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment