views:

26

answers:

1

Hello guys,

I've installed MAMP on my MacBook PRO Leopard OS. Phpmyadmin is working fine but I would like to use the terminal or bash to practice MySQL.

I seem to have a problem with it.

When I use:

mysql -h localhost -u root -p" / "mysql -h localhost -u root"

...it gives the following error:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES/NO)

Please suggest any solutions possible! Thanx in advance. :)

+1  A: 

Try checking the first page you get when you login with phpmyadmin, what credentials/host is it login in? – Francisco Soto 2 hours ago