Access MAMP's MySQL from Terminal and Import SQL database

connect like this from command line import database: 

 /Applications/MAMP/Library/bin/mysql -uUsername -pPassword 
 After provide source 

use <database>;

 source /Users/200khkjh031/Downloads/a_1712210588.sql

Obviously replace Username and Password. , there is no space between -u and the Username or -p and the Password.

Share this

Related Posts

Previous
Next Post »

Pageviews from the past week