[問題]移主機要怎樣移資料

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
k.h.chen
星球普通子民
星球普通子民
文章: 16
註冊時間: 2005-12-13 15:02

Re: [問題]請問轉移主機

文章 k.h.chen »

yangchenkuang 寫:
k.h.chen 寫:安裝好新的論壇程式後,利用phpBB的匯入,匯出資料庫的功能就可以了.
請問一下
我照著上述的方式想要把我的論譚移到另一個主機上
新的主機是跟竹貓租的
可是選了phpbb裡的回復資料庫之後
卻會出現以下的訊息..

phpBB : Critical Error

Could not query database for theme info

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3

請問這是哪邊出了問題阿??
可不可以PO 錯誤的那一行+前後各一行,讓大家一起來看看到底發生了何種語法錯誤.
genes212
星球普通子民
星球普通子民
文章: 7
註冊時間: 2006-02-12 03:50

Re: ....

文章 genes212 »

jwxie 寫:建議你...改回去先....
I get it,then?
thanks so much!
genes212
星球普通子民
星球普通子民
文章: 7
註冊時間: 2006-02-12 03:50

Re: [問題]請問轉移主機

文章 genes212 »

k.h.chen 寫:
可不可以PO 錯誤的那一行+前後各一行,讓大家一起來看看到底發生了何種語法錯誤.
I check 'config.php', right?


<?php


// phpBB 2.x auto-generated config file
// Do not change anything in this file!

$dbms = 'mysql4';

$dbhost = 'localhost';
$dbname = 'xxxx';
$dbuser = 'xxxx';
$dbpasswd = 'xxxx';

$table_prefix = 'phpbb_';

define('PHPBB_INSTALLED', true);

?>

That's all above, thanks so much!! :-)

table prefix=phpbb_
this is default, I should modify this? :-D

and I notice that yet!

小弟新的空間
MySQL 文字編碼: UTF-8 Unicode (utf8)

看個些文utf-8好像要整好耐..! :-)
係唔係呀!?
k.h.chen
星球普通子民
星球普通子民
文章: 16
註冊時間: 2005-12-13 15:02

Re: [問題]請問轉移主機

文章 k.h.chen »

genes212 寫:
k.h.chen 寫:
可不可以PO 錯誤的那一行+前後各一行,讓大家一起來看看到底發生了何種語法錯誤.
I check 'config.php', right?


<?php


// phpBB 2.x auto-generated config file
// Do not change anything in this file!

$dbms = 'mysql4';

$dbhost = 'localhost';
$dbname = 'xxxx';
$dbuser = 'xxxx';
$dbpasswd = 'xxxx';

$table_prefix = 'phpbb_';

define('PHPBB_INSTALLED', true);

?>

That's all above, thanks so much!! :-)

table prefix=phpbb_
this is default, I should modify this? :-D

and I notice that yet!

小弟新的空間
MySQL 文字編碼: UTF-8 Unicode (utf8)

看個些文utf-8好像要整好耐..! :-)
係唔係呀!?
Please refer to the suggestion in this article.
http://www.phpbb.com/phpBB/viewtopic.php?t=342731
頭像
jwxie
竹貓忠實會員
竹貓忠實會員
文章: 604
註冊時間: 2005-11-26 12:02
來自: New York, USA   學業狀況: 更加努力     個人狀況: ||地獄臭蛋|| 
聯繫:

....

文章 jwxie »

想到那篇文章
你看看,

代碼: 選擇全部

phpBB : Critical Error 

Could not query database for theme info 

DEBUG MODE 

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 
也就是你現有的問題, 可以參考這篇
http://www.phpbb.com/kb/article.php?article_id=13

參考裡有兩種FIXES(維護)
你先試Automated Fix A and B,

Manual Fix A and B 暫時請不要使用\r

好, 再回到樓上那位大大提供給你的第一個參考連結
http://www.phpbb.com/phpBB/viewtopic.php?t=342731

熱心大大有說到:

代碼: 選擇全部

Is the sql command displayed? It would help to see it. 

Are you using the subSilver theme? 

Go into the database and get the theme_id from the themes table. Then in the users table, check that your user_style is set to the theme_id.
這裡, 請你去你的資料庫裡, 查看theme_id (在themes table裡),
請你再到 users table→ user_style 資料是否 相關數位著 theme_id的
如果你目前是換了新的風格, 而沒有套入外掛於新風格裡也有可能會造成目前的問題

再來作者回應:

代碼: 選擇全部

The user_style field should be in the users table unless it got deleted somehow. The structure starts like this:Quote: 
CREATE TABLE phpbb_users ( 
user_id mediumint(8) NOT NULL default '0', 
user_active tinyint(1) default '1', 
username varchar(25) NOT NULL default '', 
user_password varchar(32) NOT NULL default '', 
user_session_time int(11) NOT NULL default '0', 
user_session_page smallint(5) NOT NULL default '0', 
user_lastvisit int(11) NOT NULL default '0', 
user_regdate int(11) NOT NULL default '0', 
user_level tinyint(4) default '0', 
user_posts mediumint(8) unsigned NOT NULL default '0', 
user_timezone decimal(5,2) NOT NULL default '0.00', 
user_style tinyint(4) default NULL, <~~~~這個
user_lang varchar(255) default NULL, 
user_dateformat varchar(14) NOT NULL default 'd M Y H:i', 

Browse the phpbb_users table. 
Click the edit icon next to your name 
Set the user_style field to 1
你只要按一下"edit"圖示在你名字旁邊(database), 再把user_style filed 設定做"1"
看看能不能解決......

目前本人帳號嚴重地被盜用!MSN已經被盜!

想問個問題並不打擾, 但沒有發文格式, 其他人不能知道你的情況!
請尊守竹貓各區裡的發文格式, 謝謝合作!
[必看]請配合發問格式及明確主題發問(04 02/16更新) phpBB!
所有新手必看的
[教學]認識、安裝和參考PHPBB的新手基本教學通
PS:感謝各位大大的幫助和教導^^
Q168.net空間技術交流

個人小品(Blog)My phpBB-Blog免費空間討論區
genes212
星球普通子民
星球普通子民
文章: 7
註冊時間: 2006-02-12 03:50

文章 genes212 »

really thanks so much, jwxie
but auto fix1,2 not work too!

我估唔關theme事, 因為我無modify過theme
會唔會係我以前mySQL=3.X,依家是4.x的開係lei?> :-D
genes212
星球普通子民
星球普通子民
文章: 7
註冊時間: 2006-02-12 03:50

文章 genes212 »

情況拉鋸中, 同感情一樣,
拖著舊的係煩d, 開新無錯是容易好多,
不過舊的實在太懷念,可惜成日都\r
reload唔到, 再試都係reload唔到,
可能真係要想想restart lah!! :-)
fecent
星球普通子民
星球普通子民
文章: 2
註冊時間: 2005-06-02 22:54

文章 fecent »

Mac 寫:
小竹子 寫:沒問題!
tw00484005 寫:請教小竹子
如果可以自己操作主機的話\r

可不可以由mysql裡的data找出該資料庫名稱,直接做複製的動作?

這樣轉移資料有可能發生問題嗎?
你得先停下 MySQL Server 不然會有問題
基本上我不建議你這樣做

~Mac
請問一下 為什麼這樣會出問題呢?
我也試過這樣的備份方法 但是就是無法順利登入\r
PHPBB下方顯示已登入 但是仍然沒有登入\r

後來我使用phpmyadmin備份的sql還原就成功了
請問是為什麼啊?
主題已鎖定

回到「phpBB 2 安裝與使用」