DISCUZ开启远程附件升级SQL命令

如果你的discuz原来附件是在本地,现在开启了远程附件,请遵循以下做法
首先,把附件目录转移到远程服务器上
其次,在PHPMYADMIN里运行如下命令(把PRE换成你的表前缀)

  1. update pre_forum_attachment set remote = '1' where remote = '0';  
  2. update pre_portal_attachment set remote = '1' where remote = '0';  
  3. update pre_home_pic set remote = '1' where remote = '0';  
  4. update pre_home_album set picflag = '2' where picflag = '1';  

你可能感兴趣的:(discuz)