做网站,域名一般变动能性不大,空间却可能转来转去。一转就要涉及网站数据的般迁。以织梦内容管理系统Dedecms搭建的网站搬起家来方法不少,但有效的也只有一两种。
由于Dedecms是用PHP编制,且需要MYSQL数据库才能撑起一个网站,WEB网页区与数据据库区一般不在同一地方,不象ASP程序编写的科汛、ZBLOG、赛特、新云等,WEB网页与ACCESS数据库是存在一起的,可以整站搬迁。
但是,使用过Wordpress博客程序的朋友,大可以明白,PHP程序编写的网页打开的速度较ASP快一点,但静态生成效果不及ASP。让人庆喜的是织梦内容管理系统Dedecms可以实现文章地址全静态化,实是难通可贵。
而且,织梦内容管理系统Dedecms做出来的网站也可以整站搬迁,方法如下:
一、登陆你的DEDECMS后台,在“系统”区找到“数据库备份/还原”,将数据库进行“备份”;
二、将老空间里所有的文件,全部下载至你的电脑本地;
三、将文件上传至新空间;
四、在新空间安装DEDECMS系统,方法——在织梦的官方网站下载一个新的安装系统,将系统里的“install”文件夹里的东西传至空间,进行覆盖。接着,运行http://你的域名/install,进行安装。需要注意的是:数据库表的前缀必须和原数据库表的前缀必须一致(按默认操作即可);
五、安装完后,登陆后台,点击“系统”区的“数据库备份/还原”,将数据进行“还原”;
六、数据生成,搬家工作完成。
当然,还有一种效防Wordpress博客搬家的方法:
一、把旧空间的文件下载到本地,通过PHPADMIN,将MYSQL备份至本地;
二、将网站文件上传到新空间,数据库通过PHPADMIN导入了;
三、修改dede安装时填写的数据库名和密码:打开“include”目录下的config_base.php,把这个文件下载下来
查找“数据库连接信息”,把下面的参数(数据库名和密码)更改一下就可以了,上传覆盖。
四、搬家完毕。
至于哪种方法最好,那就仁者见仁,智者见智了。这里提醒一下,如果你网站的MSQL数据库超过20M,最好采取上面第一种方法(又叫重装法),因为有些空间商的数据库导入设有大小限制(一般不能大于20M)——用重装法就可以避过这种限制。(文/汤树东)
评论列表
-
对我这种技术白痴来说,操作还是复杂
-
A stumble may prevent a fall.
-
As you make your bed so you must lie on it.
-
A tall tree catches the wind.
-
Politeness costs nothing and gains everything.
-
Out of sight, out of mind
-
Practice makes perfect
-
Every soil where he is well, is to a valiand man his natural country
-
Go where he will, the wise man is at home His harth the earth, his hall the azure dome
-
Happy are the families where the government of parents is the reign of affection, and obedience of the children the submission to love
-
A candle lights others and consumes itself.
-
cat has 9 lives
-
A cat may look at a king.
-
A friend without faults will never be found.
-
After you" is good manners.
-
A good beginning is half done.
-
nice to meet you
-
if not be actually in progress [url=http://abercrombie4uk.com]Abercrombie and Fitch[/url]
-
Today we have higher buildings and wider highways, but shorter temperaments and narrower points of view;
-
A living dog is better than a dead lion.<a href="http://ybclblog.com/">YBCL Blog</a>
-
Actions speak louder than words.<a href="http://2lgm.com/">2lgm</a>
-
very good
-
hjghjk
-
Love never dies.
由 汤树东 于 2010-5-12 20:40:07 最后编辑 -
East or west, home is best.
由 汤树东 于 2010-5-12 20:40:22 最后编辑 -
<a href="http://www.cheaplouboutins.com/">Christain Loubontin</a>Little chips light great fires.
-
[url=http://www.hiphopdiscounts.com]AFL Jersey[/url]
-
The darkest hour is before the dawn.
-
<a href="http://www.timberlandonlineshop.com/">Timberland BootS</a> Pain past is pleasure.
-
A heart that loves is always young.
-
Less is more.
-
As you make your bed, so you must lie in it.
-
闪光的东西并非都是金子
-
人多力量大
-
seeing is believing.
-
Where there is great love, there are always miracles.
-
Walls have ears
-
As you make your bed, so you must lie in it.
-
All that glitters is not gold.
-
Failure is the mother of success.
-
你的文章写得很不错!!!
-
好难搬啊 、、
-
是啊
-
博主讲的很好,先收藏了。
发表评论