MySQLインストール

MacBookMySQLをインストールしたのだけど、マニュアルどおりに以下のコマンドを打つが、


% mysqladmin version
ERROR 1045 (28000): Access denied for user '*****'@'localhost' (using password: NO)


なってしまう。それで


http://dev.mysql.com/doc/refman/4.1/ja/access-denied.html


ここを見ながらトラブルシュートしようとするが、いきなり、


% mysql -u root test
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)


が出た。そこで以下の


http://mysql.deikou.com/pages/000060.html


を参考にやってみたら、


% mysql -u root -D test
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.0.45 MySQL Community Server (GPL)


Type 'help;' or '\h' for help. Type '\c' to clear the buffer.


mysql>


なんと、あっさり起動できた。
"-D"に気づかなかった。は〜。。。