PHP開發(fā)新聞管理系統(tǒng)之創(chuàng)建數(shù)據(jù)庫
下面我們打開mysql的命令行
輸入密碼,按回車,
下面我們就可以來創(chuàng)建數(shù)據(jù)庫
數(shù)據(jù)庫名為 news
接下來我們要去查看一下news 數(shù)據(jù)庫是否已完成創(chuàng)建
如上圖,我們已經(jīng)清晰的看見了,上面存在news? 那么我們數(shù)據(jù)庫就已經(jīng)完成創(chuàng)建
下面我們要對(duì) news 數(shù)據(jù)庫進(jìn)行操作
我們來創(chuàng)建一個(gè)簡(jiǎn)單的數(shù)據(jù)表
表名? new
id?? title(標(biāo)題) ? content(內(nèi)容)?? messtime
下面我們來創(chuàng)建數(shù)據(jù)表,首先選擇數(shù)據(jù)庫
這樣我們就選擇了news 這個(gè)數(shù)據(jù)庫,下面我們來創(chuàng)建數(shù)據(jù)表
這樣我們的表就創(chuàng)建完成