How to import new DB dump in MAMP command lines

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

 

Tags:

Comments are closed