标签:
1.系统设置路径替换
update dede_sysconfig set value=‘http://afish.cnblogs.com‘ where varname=‘cfg_basehost‘;
update dede_sysconfig set value=‘/afish‘ where varname=‘cfg_cmspath‘;
update dede_sysconfig set value=‘/afish‘ where varname=‘cfg_indexurl‘;
2.栏目文章中的路径替换
update dede_archives set litpic=replace(litpic, ‘/dcms/‘,‘/afish/‘);
update dede_addonarticle set body=replace(body, ‘/dcms/‘,‘/afish/‘);
update dede_addonimages set imgurls=replace(imgurls, ‘/dcms/‘,‘/afish/‘);
update dede_uploads set url=replace(url, ‘/dcms/‘,‘/afish/‘);
主要是这几个表中字段值的替换,其他要看模板有哪些新增的附加表,做相应修改即可。
标签:
原文地址:http://www.cnblogs.com/onlylove2015/p/4392253.html