Websites | Photography | Video Editing | 3D Animations

From the Blog

Jul
05

How to import new DB dump in MAMP command lines

Posted by Paul Costan on July 5th, 2012 at 11:39 am

Here is a tip how to create and import database dump to your MAMP phpMyAdmin using Terminal command line:

/Applications/MAMP/Library/bin/mysql –host=localhost -uroot -proot –default-character-set=utf8 DB-NAME < /Users/name/Desktop/sqldump.sql

Copy and paste line below to access DB:

/Applications/MAMP/Library/bin/mysql –host=localhost -uroot -proot