まず以下のコマンドで接続します。
1 | mysql -u db_user -p |
今回はテスト用に test というデータベースを作成しています。以下のように使うデータベースに test を打ちます。
mysql>use test
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -ADatabase changed
以下のように打つとテーブル一覧が見れます。
1 2 3 4 5 6 | mysql> SHOW TABLES; +----------------+ | Tables_in_test | +----------------+ | test_table | +----------------+ |
コメント