質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.46%
ログイン

ログインは、ユーザーがコンピューターシステムにアクセスするプロセスの事を呼びます。

Docker

Dockerは、Docker社が開発したオープンソースのコンテナー管理ソフトウェアの1つです

Q&A

解決済

1回答

1086閲覧

dockerのmysqlログイン時のエラー

work1212

総合スコア1

ログイン

ログインは、ユーザーがコンピューターシステムにアクセスするプロセスの事を呼びます。

Docker

Dockerは、Docker社が開発したオープンソースのコンテナー管理ソフトウェアの1つです

0グッド

0クリップ

投稿2021/11/15 12:50

前提・実現したいこと

dockerでxamppの代わりになるようなコンテナを作るために、sqlにログインしたいと思っています。

発生している問題・エラーメッセージ

mysqlログイン時にEnter passwordとpowerShellに表示されたのですが、入力できなかったので(半角が反応しない全角は打てる)入力の仕方を調べたら、ログイン時にパスワードをくっつけて入力する方法があったのでそれを試したらエラーが発生しました。

ERROR

1root@613015700dd5:/# mysql -u root -ppassword 2mysql: [Warning] Using a password on the command line interface can be insecure. 3Welcome to the MySQL monitor. Commands end with ; or \g. 4Your MySQL connection id is 12 5Server version: 8.0.23 MySQL Community Server - GPL 6 7Copyright (c) 2000, 2021, Oracle and/or its affiliates. 8 9Oracle is a registered trademark of Oracle Corporation and/or its 10affiliates. Other names may be trademarks of their respective 11owners. 12 13Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 14エラーメッセージ

該当のソースコード

root@613015700dd5:/# mysql -u root -ppassword

環境

環境の書き方間違っているかもしれません。
Windows10 powershell
Docker Desktop

補足情報(FW/ツールのバージョンなど)

また、エラーが出ているのにmysqlに接続されている気がします。
root@613015700dd5:/# mysql -u root -ppassword
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 8.0.23 MySQL Community Server - GPL

Copyright (c) 2000, 2021, Oracle and/or its affiliates.

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>

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

また、エラーが出ているのに

どこにもエラーはありません。

mysql: [Warning]

これのことを言っているなら、Warning(警告)です。
警告の内容は、続く英文を読めばわかるでしょう。

投稿2021/11/15 12:58

technocore

総合スコア7247

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.46%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問