
MySQL
CLI
ログイン
Plain Text
–show-warning をつけたりできる
SQL 実行
Plain Text
mysqldump
Plain Text
テーブル情報をみる
Plain Text
create table をみる
Plain Text
ファイルから実行する
Plain Text
参考:https://dev.mysql.com/doc/refman/5.6/ja/mysql.html
サーバステータス変数
最大コネクション数とかがみれたりする
Plain Text
絞り込む場合
Plain Text
参考:https://dev.mysql.com/doc/refman/5.6/ja/server-status-variables.html
システム変数
Plain Text
絞り込む場合
Plain Text
参考:https://dev.mysql.com/doc/refman/5.6/ja/show-variables.html
コマンドを途中で消したい
\c
を入力する各カラムを 1 行ずつ表示したい
\G
を末尾につけるPlain Text
テーブル数をみる
Bash
インデックス
Bash
パスワードを入れずにdumpを実行したい
Bash
カラム名を出力したくない
Bash
Docker
Bash
MySQLWorkbenchでデフォルトを5.7にしておかないと、ER図からDDL作成したりするときにエラーになる
https://qiita.com/ryochin_sky/items/bab994fb9ea42b68a922
Bash