MySQL/データベース一覧を表示する方法
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(../)
*MySQLでデータベース一覧を表示する方法 [#h1f466cc]
MySQLに接続して存在するデータベースの一覧を表示する方法を...
#contents
#htmlinsertpcsp(db-top.html,db-sp.html)
* 関連資料 [#z2f0dd82]
-[[使用しているデータベースの確認方法>MySQL/使用している...
* データベース一覧を表示してみる [#t095ea6d]
データベース一覧を表示するコマンドは以下の構文になります。
show databases;
以下の操作によりデータベースを3つ作成し一覧を表示してみま...
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 16
Server version: 5.1.61 Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. ...
Oracle is a registered trademark of Oracle Corporation a...
affiliates. Other names may be trademarks of their respe...
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the cu...
show database;コマンドを使用し作成前のデータベース一覧を...
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
+--------------------+
2 rows in set (0.00 sec)
データベースを3つ作成。
mysql> create database db1;
Query OK, 1 row affected (0.00 sec)
mysql> create database db2;
Query OK, 1 row affected (0.00 sec)
mysql> create database db3;
Query OK, 1 row affected (0.00 sec)
show database;コマンドを使用し作成前のデータベース一覧を...
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| db1 |
| db2 |
| db3 |
| mysql |
+--------------------+
5 rows in set (0.00 sec)
mysql>
#htmlinsertpcsp(db-btm.html,db-sp.html)
終了行:
#navi(../)
*MySQLでデータベース一覧を表示する方法 [#h1f466cc]
MySQLに接続して存在するデータベースの一覧を表示する方法を...
#contents
#htmlinsertpcsp(db-top.html,db-sp.html)
* 関連資料 [#z2f0dd82]
-[[使用しているデータベースの確認方法>MySQL/使用している...
* データベース一覧を表示してみる [#t095ea6d]
データベース一覧を表示するコマンドは以下の構文になります。
show databases;
以下の操作によりデータベースを3つ作成し一覧を表示してみま...
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 16
Server version: 5.1.61 Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. ...
Oracle is a registered trademark of Oracle Corporation a...
affiliates. Other names may be trademarks of their respe...
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the cu...
show database;コマンドを使用し作成前のデータベース一覧を...
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
+--------------------+
2 rows in set (0.00 sec)
データベースを3つ作成。
mysql> create database db1;
Query OK, 1 row affected (0.00 sec)
mysql> create database db2;
Query OK, 1 row affected (0.00 sec)
mysql> create database db3;
Query OK, 1 row affected (0.00 sec)
show database;コマンドを使用し作成前のデータベース一覧を...
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| db1 |
| db2 |
| db3 |
| mysql |
+--------------------+
5 rows in set (0.00 sec)
mysql>
#htmlinsertpcsp(db-btm.html,db-sp.html)
ページ名: