I have been learning Ruby on Rails and have been using the command line successfully to view and edit the database (using the
mysql -h localhost:8888 -u root -p
Unknown MySQL server host 'localhost:8888'
MAMP installs it's own MySQL which means that you now have two MySQL instances installed on you machine.
try typing this in your terminal