ユーザ用ツール

サイト用ツール


サイドバー


メニュー




スポンサーリンク





mysql:管理:データベース

MySql:管理:データベース

データベースの作成

create database データベース名

データベースの削除

drop database データベース名

データベースの表示

show databases;
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| test               |
+--------------------+
3 rows in set (0.00 sec)

データベースのデータベースの選択

use データベース名;

文字コードの確認

show variables like "%char%";
mysql> use test_DB;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
mysql> show variables like "%char%";
+--------------------------+----------------------------+
| Variable_name            | Value                      |
+--------------------------+----------------------------+
| character_set_client     | utf8                       |
| character_set_connection | utf8                       |
| character_set_database   | utf8                       |
| character_set_filesystem | binary                     |
| character_set_results    | utf8                       |
| character_set_server     | utf8                       |
| character_set_system     | utf8                       |
| character_sets_dir       | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
mysql/管理/データベース.txt · 最終更新: 2015/12/08 01:56 by dokuroot