1 頁 (共 1 頁)

[問題]關於性別123c(for204)(已解決)

發表於 : 2003-08-20 22:51
allen0007
●架設主機作業系統:Windows Xp Pro
●快速架站程式:Appserv 1.9.0
●您的上網方式:東森CABLE
●您的 phpBB2 版本:phpBB 2.0.6
http://phpbb-tw.net/phpbb/viewtopic.php?t=14574
請問第1個步驟要怎麼做?我看不懂
#
#-----[ ADD SQL ]------------------------------------------
#
# or run the included db_update.php file as admin
#
ALTER TABLE phpbb_users ADD user_gender TINYINT not null DEFAULT "0"

發表於 : 2003-08-20 23:18
H.T.Demon
就是要你匯入資料到MySQL
兩個做法
1.使用phpMyadmin
2.使用mysql.exe

選擇1.就是到phpmyadmin裡選擇你PHPBB的資料庫後點擊"SQL" 然後在 輸入框中\r
貼上

代碼: 選擇全部

ALTER TABLE phpbb_users ADD user_gender TINYINT not null DEFAULT "0"
然後按下執行 就會匯入\r

選擇方法2. 就是執行資料夾mysql\bin\下的 "mysql.exe"
然後輸入use 你的資料庫名稱\r
ex:

代碼: 選擇全部

use phpbb
use打完要空一格在接著資料庫名稱\r
Enter後若出現這句Database changed 就代表進入資料庫啦~
然後在接著打上

代碼: 選擇全部

ALTER TABLE phpbb_users ADD user_gender TINYINT not null DEFAULT "0";
就能增加了

試試看吧~

發表於 : 2003-08-20 23:25
allen0007
H.T.Demon 寫:就是要你匯入資料到MySQL
兩個做法
1.使用phpMyadmin
2.使用mysql.exe

選擇1.就是到phpmyadmin裡選擇你PHPBB的資料庫後點擊"SQL" 然後在 輸入框中\r
貼上

代碼: 選擇全部

ALTER TABLE phpbb_users ADD user_gender TINYINT not null DEFAULT "0"
然後按下執行 就會匯入\r

選擇方法2. 就是執行資料夾mysql\bin\下的 "mysql.exe"
然後輸入use 你的資料庫名稱\r
ex:

代碼: 選擇全部

use phpbb
use打完要空一格在接著資料庫名稱\r
Enter後若出現這句Database changed 就代表進入資料庫啦~
然後在接著打上

代碼: 選擇全部

ALTER TABLE phpbb_users ADD user_gender TINYINT not null DEFAULT "0";
就能增加了

試試看吧~
我終於會了,我是用第1個方法,感謝H.T.Demon兄的幫忙