1 頁 (共 2 頁)

[問題] 資料庫回復,但是網站版本不對

發表於 : 2004-12-27 13:56
ckone
我原本的版本是2.0.10,我有備份我的資料庫\r
今早網站被攻掛,所以我就把2.0.10的網站砍掉
用2.0.11重新安裝,再把之前是2.0.10版本的資料庫匯回去\r
當還沒匯回去資料庫時版本是2.0.11
匯回去後版本就變成2.0.10
請問這該怎辦\r
謝謝

發表於 : 2004-12-27 13:57
Kill
把版本改一下就好了咩\r
不要問我怎麼改\r
自己去找找唄

發表於 : 2004-12-27 14:06
ckone
可以改嗎?不好意思,小弟真的不太會><""

代碼: 選擇全部

<div align="center"><span class="copyright"><br />{ADMIN_LINK}<br />
<!--
	We request you retain the full copyright notice below including the link to www.phpbb.com.
	This not only gives respect to the large amount of time given freely by the developers
	but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good
	reason) retain the full copyright we request you at least leave in place the 
	Powered by phpBB {PHPBB_VERSION} line, with phpBB linked to www.phpbb.com. If you refuse
	to include even this then support on our forums may be affected. 

	The phpBB Group : 2002
// -->
Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> {PHPBB_VERSION} &copy; 2001, 2002 phpBB Group<br />{TRANSLATION_INFO}</span></div>
		</td>
	</tr>

</table>

</body>
</html>

發表於 : 2004-12-27 14:11
webspirit
麻煩進 phpBB 使用的資料庫\r
改 phpbb_config 資料表的 version 欄位值為 .0.11

發表於 : 2004-12-27 14:19
動機不明
下 SQL 指令\r

代碼: 選擇全部

UPDATE `config` SET `config_value` = '.0.11' WHERE `config_name` = 'version' LIMIT 1 ;

發表於 : 2004-12-27 14:46
splin
NO...不速啦...
http://your.domain.com/phpBB2/install/u ... 2.0.11.php
這樣子才對!
為什麼呢?
因為如果,有時更版剛好有更新資料庫時,怎麼辦?
所以,用 官方提供的 upgrade_to_2.0.11.php 會比較好喔!
雖然每次沒有改動什麼,不過我之前 在 2.0.3 > 2.0.4 > 2.0.6 就有碰過
有更新資料庫欄位的! 所以,不要不信邪喔....^^

如果要手動更新資料庫,如果使用 phpMyAdmin 修改,
將在 會在第二頁,你會找到 phpbb_version

發表於 : 2004-12-27 14:47
webspirit
老大,樓主已用 2.0.11 重裝了 = =

發表於 : 2004-12-27 14:51
splin
webspirit 寫:老大,樓主已用 2.0.11 重裝了 = =
對沒有錯.
我說那隻工具.就是針對 資料庫部份改正!
因為他用的是舊資料庫.
因為我每次更版都是這麼做的!
相信我....^_^

發表於 : 2004-12-27 14:56
webspirit
hihihi
在下不敢多言 ^^

發表於 : 2004-12-27 15:44
ckone
小弟沒有 phpbb_config 資料表的 version 欄位耶><""

發表於 : 2004-12-27 15:46
splin
webspirit 寫:hihihi
在下不敢多言 ^^
唉喲...不是要凸臭的意思.
只是想要教導 USER 用正確的方法,
因為有些 USER 不一定會用資料庫的改法.
萬一,他們又手誤,誤刪了一些 DB ,那就頭大了.....
是不是?
再者官方也有提供 upgrade 的 php 程式,
何不直接套用?對不對?

發表於 : 2004-12-27 15:51
splin
ckone 寫:小弟沒有 phpbb_config 資料表的 version 欄位耶><""
建議您用 phpBB2 附的 upgrade_to_2.0.11.php 來升級.
這樣子比較安全.....

發表於 : 2004-12-27 16:01
Kill
嗯...
對對對
你說的都是對的- -

發表於 : 2004-12-27 16:20
splin
k122417901 寫:嗯...
對對對
你說的都是對的- -
怎麼了啊???不爽啊????
我就是看不慣.你們 75 新手.... :mrgreen:

發表於 : 2004-12-27 16:25
ckone
各位高手大大,請不要生氣吵架