I want to practice using SQL instead of phpMyAdmin.
How do I log into MAMP\'s MySQL from the terminal?
I could not get any of the above working :/ I went to http://blog-en.mamp.info/2009/08/using-mysql-command-line-with-mamp.html and it worked perfectly. Hope this helps.
Open a new terminal window, copy and paste the section below and TADA!
/Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot