Mac OS X上にMySQLをインストールし、今はrootユーザのパスワードを設定しようとしています。
以下の手順を行っています。
1.UNIXコマンドラインにアクセスする為に、端末アプリケーションを発動させます。
2.UNIXプロンプトで以下のコマンドを実行させます。
madaura$ cd /usr/local/mysql/bin
madaura$ ./mysqladmin -u root password 'password'
しかし、「madaura$ ./mysql -u root」コマンドを実行したところ、以下の結果が表示されました。
lang
1Welcome to the MySQL monitor. Commands end with ; or \g. 2Your MySQL connection id is 224 3Server version: 5.5.13 MySQL Community Server (GPL) 4 5Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. 6 7Oracle is a registered trademark of Oracle Corporation and/or its 8affiliates. Other names may be trademarks of their respective 9owners. 10 11Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 12 13mysql>
mysqlコマンドラインにパスワード無しで入ることができてしまいました。
なぜでしょうか。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。