LoginSignup
0
0

More than 5 years have passed since last update.

MySQL:ログインできなかった時の対応

Last updated at Posted at 2017-11-21

いつも通りに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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0