本文是MySQL學習筆記系列文章的第一篇,給大家簡單講解下MySQL的一些檢查操作指令,希望大家能夠喜歡
##查看資料庫
show databases;
create DATABASE 数据库名称 create DATABASE databasetest;
use databasetest; ------------ Database changed;切换成功
SELECT DATABASE();
drop DATABASE 数据库名称 drop DATABASE databasetest;
status; -------------- mysql Ver 14.14 Distrib 5.7.17, for Win64 (x86_64) Connection id: 5 Current database: Current user: root@localhost SSL: Not in use Using delimiter: ; Server version: 5.7.17-log MySQL Community Server (GPL) Protocol version: 10 Connection: 127.0.0.1 via TCP/IP Server characterset: utf8 Db characterset: utf8 Client characterset: gbk Conn. characterset: gbk TCP port: 3306 Uptime: 2 hours 25 min 34 sec Threads: 2 Questions: 57 Slow queries: 0 Opens: 114 Flush tables: 1 Open tables: 107 Queries per second avg: 0.006 --------------
以上是mysql學習之基礎知識詳解的詳細內容。更多資訊請關注PHP中文網其他相關文章!