推薦使用mysql管理工具navicat for mysql
備份:
備份完成后會(huì)生成一個(gè).sql文件
還原:
首先打開(kāi)備份的.sql文件,刪除其中的
重新使用navicat還原
運(yùn)行完后再執(zhí)行以下命令創(chuàng)建視圖
create view sline_search (channelname,webid,aid,typeid,title,description,litpic,shownum,kindlist,attrid,headimgid,tid,ishidden)
AS
SELECT '線(xiàn)路',webid,aid,1,title,features,litpic,shownum,kindlist,attrid,0,id,ishidden FROM sline_line
union
SELECT '酒店',webid,aid,2,title,content,litpic,shownum,kindlist,attrid,0,id,ishidden FROM sline_hotel
union
SELECT '車(chē)輛',webid,aid,3,title,content,litpic,shownum,kindlist,attrid,0,id,ishidden FROM sline_car
union
SELECT '攻略',webid,aid,4,title,content,litpic,shownum,kindlist,attrid,0,id,ishidden FROM sline_article
union
SELECT '景點(diǎn)',webid,aid,5,title,content,litpic,shownum,kindlist,attrid,0,id,ishidden FROM sline_spot
union
SELECT '相冊(cè)',webid,aid,6,title,content,litpic,shownum,kindlist,attrid,headimgid,id,ishidden FROM sline_photo
union
SELECT '簽證',webid,aid,8,title,content,litpic,shownum,'','',0,id,ishidden FROM sline_visa
union
SELECT '團(tuán)購(gòu)',webid,aid,13,title,content,litpic,shownum,kindlist,attrid,0,id,ishidden FROM sline_tuan;
會(huì)員評(píng)論