Created
September 5, 2012 17:25
-
-
Save kany/3640501 to your computer and use it in GitHub Desktop.
Importing Large MySQL Databases - Mac OS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Install Keka | |
http://www.kekaosx.com/en/ | |
2) (optional) split your import file(http://www.webmaster-source.com/2011/09/26/how-to-import-a-very-large-sql-dump-with-phpmyadmin/) | |
3) Compress your sql dump file(s) into a 7z file using Keka. | |
4) From the terminal, run: | |
7z x -so backup_some_app_data.sql.7z | mysql -u root some_app_db | |
5) Read some blogs and wait | |
6) Use 'show tables' to see how many tables have imported | |
7) Use 'show table status from some_app_db like 'some_table_name' \G' to see rows being added to the db. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment