消去してインストールし、このチュートリアルOSX 10.11 El Capitan
に従って、新しい OS X を起動して実行しました。最初のステップは、MySQL For Mac OS X 10.9 (x86、64 ビット)、DMG アーカイブ(10.11 で動作) をダウンロードすることでした。 、チュートリアルで推奨されています)。MySQL のインストールを完了しているときに、次のようなメッセージが表示されました。MySQL
2015-10-25T02:10:54.549219Z 1 [Note] A temporary password is generated for root@localhost: R>gFySuiu23U
If you lose this password, please consult the section How to Reset the Root Password in the MySQL reference manual.
それは奇妙でした、私はそのようなメッセージを見たことがありません。その後、Preference Pane から MySQL を起動/usr/local/mysql/bin/mysql -v
し、ターミナルでコマンドを使用して別の手順を実行しました。次のようなエラー メッセージが表示されました。
ERROR 1045 (28000): Access denied for user 'cheetah'@'localhost' (using password: NO)
Sequel Pro
また、ルートをユーザー名として使用し、パスワードを空白にしてデータベースにアクセスしようとしましたが、次のようなアクセス拒否メッセージが表示されました。
Unable to connect to host 127.0.0.1 because access was denied.
Double-check your username and password and ensure that access from your current location is permitted.
MySQL said: Access denied for user 'root'@'localhost' (using password: NO)
わかりました、root をユーザー名として、'R>gFySuiu23U' をパスワード (MySQL から生成されたもの) として使用して、これも再試行しました。次のような接続失敗メッセージが表示されました。
Unable to connect to host 127.0.0.1, or the request timed out.
Be sure that the address is correct and that you have the necessary privileges, or try increasing the connection timeout (currently 10 seconds).
MySQL said: Your password has expired. To log in you must change it using a client that supports expired passwords.
どうすればこの問題を解決できますか? MySQL がこのような一時パスワードを自動的に生成したことがないことを覚えていますね。