开发者

MAMP Mysql in Terminal

开发者 https://www.devze.com 2023-01-03 03:15 出处:网络
I\'ve installed MAMP on my MacBo开发者_Go百科ok PRO Leopard OS. Phpmyadmin is working fine but I would like to use the terminal or bash to practice MySQL.

I've installed MAMP on my MacBo开发者_Go百科ok 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. :)


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


I have created aliases in my .bash_profile:

alias mysql='/Applications/MAMP/Library/bin/mysql'
alias mysqldump='/Applications/MAMP/Library/bin/mysqldump'

I hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消