LoginSignup
1
1

More than 3 years have passed since last update.

メモ①-DB起動からテーブル一覧の表示まで-

Last updated at Posted at 2020-02-26

【仮定】
MariaDBの導入・環境構築は終わっているものとする

<0>
①コマンドプロンプトからMariaDBを起動するには
mysql -u ユーザー名 -pを入力し、Enter。

②現在手元にあるデータべース一覧を表示する
MariaDB [(none)]> SHOW databases;

③使用するデータベースを選択する
MariaDB [(none)]> USE データベース名;

④データベースに含まれるテーブル一覧を表示する
MariaDB [world]> SHOW tables;

⑤テーブルに含まれる項目一覧を表示する
MariaDB [world]> DESC テーブル名;

・・・②へ続く

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