?????? ??
6.1 ?????? ??
?????? ??
?:
mysql> create database php; Query OK, 1 row affected (0.00 sec)
"Query OK"? ? ??? ????? ?????? ?????. "Query OK"? ?? DDL ? DML(SELECT ??) ??? ????? ?????? ?????. ??? ??????? ? ??? ??? ??? "0.00?"? ?? ?? ??? ?????.
? ??????? ?? ???? ?? ????
mysql> create database liwenkai; ERROR 1007 (HY000): Can't create database 'liwenkai'; database exists
?????? ??
??:
show? ?????? ?????.
??????? ??????? ?????.
??????? ??????? ????? ?? ??????? ?????.
?:
mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | php | | test | +--------------------+ 5 rows in set (0.00 sec)
?????? ??
liwenkai ?????? ??
??:
??? ??? ?????.
????? ??? ?? ?????? ???? ???? ?? ??????? ?????. >
mysql> use php; Database changed??? ?? PHP ??????? ?????. ??, use ?? ???? ???? ??? ??????? ??? ? ????. ?? ?? mysql ???? ??? mysql ??????? ???? ??? ?????.
mysql> use mysql; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed"?????? ???" ???? ????? ???? ???? ?????. ?? ?? mysql ??????? ??? ??? ?????(?? ?????? ?? ??????? ?? ?? ???? show ? ??) ??????? ??? ?? ?????? ???? ? ? ????. ??????? ??? ????? ??? ??? ?? ? ?????
mysql> show tables; +---------------------------+ | Tables_in_mysql | +---------------------------+ | columns_priv | | db | | event | | func | | general_log | | help_category | | help_keyword | | help_relation | | help_topic | | innodb_index_stats | | innodb_table_stats | | ndb_binlog_index | | plugin | | proc | | procs_priv | | proxies_priv | | servers | | slave_master_info | | slave_relay_log_info | | slave_worker_info | | slow_log | | tables_priv | | time_zone | | time_zone_leap_second | | time_zone_name | | time_zone_transition | | time_zone_transition_type | | user | +---------------------------+ 28 rows in set (0.00 sec)? ???? ??? ??? ?????? ??? ??? ???, ??, ?????? ??, ?? ?? ??? ?? ??????.
?? ??
?????? ??, ?????? ??? php drop? ???? drop??? ??? ??? ? ????. ? ??
??????? ??????? ?????
????? ??? ??? ?????? ??? ?????.
mysql> drop database liwenkai; Query OK, 0 rows affected (0.01 sec)
[????] ??: ??????? ??? ??? ??? ?? ???? ?????. ??????? ???? ?? ???? ??? ??? ?????.