--- tags: sql mysql --- # 創建 & 刪除 資料庫 ## 創建資料庫 * 啟動 CLI ```sql= mysql-ctl cli; ``` * 列出可用的資料庫 ```sql= show databases; ``` * 建立資料庫的主要名稱: ```sql= CREATE DATABASE database名稱; ``` * 也可以下滑線創建 ```sql= CREATE DATABASE soap_store; ``` ## 刪除資料庫 * 刪除資料庫 ```sql= DROP DATABASE database_名稱; ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up