下面我們打開mysql的命令列
![1477988057225076.png 5.png](https://img.php.cn/upload/image/396/973/918/1477988057225076.png)
輸入密碼,按回車,
下面我們就可以來建立資料庫
資料庫名稱為news
![1477988129965840.png 1.png](https://img.php.cn/upload/image/291/477/707/1477988129965840.png)
接下來我們要去看看news 資料庫是否已完成建立
![1477988191303803.png 2.png](https://img.php.cn/upload/image/825/445/260/1477988191303803.png)
如上圖,我們已經清晰的看見了,上面存在news 那麼我們資料庫就已經完成創建
#下面我們要對news 資料庫進行操作
我們來建立一個簡單的資料表
表名 new
id title(標題) content(內容) messtime
下面我們來建立資料表,先選擇資料庫
![1477988763618691.png 3.png](https://img.php.cn/upload/image/690/874/509/1477988763618691.png)
這樣我們就選擇了news 這個資料庫,下面我們來建立資料表
![1477988834713562.png 4.png](https://img.php.cn/upload/image/669/549/941/1477988834713562.png)
這樣我們的表格就會建立完成
下一節