1. 実行環境
OS : Windows7
MySQL : Ver 14.14 Distrib 5.7.11, for Win64 (x86_64)
2. ログイン
mysql -u root -p
パスワード入力
(参考) ログイン時にデータベースまで指定する。
mysql -u root -p [database name]
3. データベースリスト
mysql>show databases;
4. データベース指定
mysql>use [database name];
5. 指定データベースのテーブルリスト照会
mysql>show tables;
6. 指定テーブルのデータ照会
mysql>select * from [table name];