5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MySQL Workbechからコマンドラインでmysqlに接続する

Last updated at Posted at 2019-11-01

概要

MySQL Worckbenchに登録されてる接続先に、ターミナルから簡単にmysqlコマンドで接続する方法です。

SQLのトランザクションを検証したかったのですが、
WorkbenchのGUIからの複数のトランザクションを開始して、対話的ににクエリ実行する方法が思いつかなかったので、コマンドで実行する必要がありました。
(もっといい方法があるかもしれないけど)

接続方法が、SSHの踏み台経由(Standard TCP/IP over SSH)でも問題なく接続できました。

手順

起動後のトップ画面で、任意の接続先で右クリック→「Start Command Line Client」

スクリーンショット 2019-11-01 12.27.41.png

やったー!

スクリーンショット 2019-11-01 12.31.58.png

5
1
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
5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?