いつも通りにMySQLにログインしたらエラー。。
何も出来ない。。なぜ。。
root@1a0ddc30403d:/usr/local/home/python# mysql -Uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 59
Server version: 5.7.20-0ubuntu0.16.04.1 (Ubuntu)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
Ignoring query to other database
mysql> select * from mysql.user;
Ignoring query to other database
どうもログインの方法が違ったようでした。
mysql -Uroot -p
mysql -root -p
とかは駄目なようです。
これでOKでした。大文字でも駄目なんですね。
mysql -uroot -p
以下のサイトを参考にさせて頂きました。ありがとうございました。
http://sakaik.hateblo.jp/entry/20100126/p1