1 頁 (共 1 頁)

[問題] Online Battle 不能匯入sql

發表於 : 2004-08-31 21:43
quoll
問題外掛 : Online Battle FF WOG v2.07
使用版本:phpBB 2.0.7
網站位置:http://members.lycos.co.uk/quollmax/
狀況描述:

本人匯入sql時出現錯誤...
當INSERT INTO `wog_character`............................時,
出現以下錯誤....
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 '1,3', '1,3', '0,2', '0,1', 0, 0, 0, 1, 0, '0,1', '0,2', '1', '1

本人不清楚是甚麼問題,毫無頭緒,請大大幫幫小弟吧...!

Re: [問題] Online Battle 不能匯入sql

發表於 : 2004-08-31 22:11
messagebox
很遺憾~你將最重要的線索訊息省略掉了~

INSERT INTO `wog_character`............................

發表於 : 2004-09-01 20:17
quoll
[php]
INSERT INTO `wog_character` (`ch_id`, `ch_name`, `ch_str`, `ch_agl`, `ch_life`, `ch_smart`, `ch_mstr`, `ch_magl`, `ch_msmart`, `ch_mlv`, `ch_mlife`, `ch_au`, `ch_be`, `s_at`, `s_df`, `s_mat`, `s_mdf`, `s_agl`, `s_money`, `s_r`, `s_o`, `s_s`, `s_a`, `s_m_at`, `s_m_df`, `s_m_mdf`, `s_m_mat`, `s_m_agl`, `s_hp`) VALUES
(6, '戰士', '1,4', '0,1', '0,3', '0,1', 0, 0, 0, 1, 0, '0,1', '0,2', '1', '1.2', '1', '1', '1', '1', 0, 0, 0, 0, '1', '1', '1', '1', '1', '0'),
(7, '術士', '0,1', '0,1', '0,2', '1,4', 0, 0, 0, 1, 0, '0,1', '1,2', '1', '1', '1.2', '1', '1', '1', 0, 0, 0, 0, '1', '1', '1', '1', '1', '0'),
(8, '盜賊', '1,3', '1,3', '0,2', '0,1', 0, 0, 0, 1, 0, '0,1', '0,2', '1', '1', '1', '1', '1', '1.2', 0, 0, 0, 0, '1', '1', '1', '1', '1', '0'),
(9, '武道家', '1,4', '1,3', '1,3', '0,1', 20, 10, 10, 8, 0, '0,1', '0,2', '1', '1', '1', '1', '1', '1', 0, 0, 10, 0, '1', '1', '1', '1', '1', '0'),
(10, '法師', '1,2', '1,2', '0,2', '2,4', 8, 10, 20, 8, 0, '0,1', '1,3', '1', '1', '1', '1', '1', '1', 0, 0, 0, 0, '1', '1', '0.8', '1', '1', '0'),
(11, '弓箭手', '1,3', '1,3', '1,2', '0,1', 15, 20, 10, 8, 0, '0,1', '0,2', '1', '1', '1', '1', '1', '1', 10, 0, 0, 0, '1', '1', '1', '1', '1', '0'),
(12, '騎士', '2,4', '1,2', '1,3', '0,2', 30, 15, 10, 10, 0, '0,1', '0,2', '1', '1', '1', '1', '1', '1', 5, 5, 0, 0, '1', '1', '1', '1', '1', '0'),
(13, '上乘射手', '1,3', '2,3', '1,3', '1,2', 29, 45, 0, 20, 0, '0,1', '0,2', '1', '1', '1', '1', '1', '1', 0, 0, 0, 3, '1', '1', '1', '1', '1', '0'),
(14, '祭師', '1,2', '1,3', '0,2', '2,4', 0, 28, 51, 20, 0, '0,1', '1,3', '1', '1', '1', '1', '1', '1', 0, 0, 0, 0, '1', '1', '1', '1', '1', '0.1'),
(15, '武技長', '2,5', '1,3', '1,4', '1,2', 52, 28, 0, 21, 0, '0,1', '0,2', '1.2', '1', '1', '1', '1', '1', 0, 0, 0, 0, '1', '1', '1', '1', '1', '0'),
(16, '殺手', '2,3', '2,4', '1,3', '1,3', 40, 78, 28, 30, 0, '0,1', '0,3', '1', '1', '1', '1', '1', '1', 0, 10, 0, 0, '1', '1', '1', '1', '1', '0'),
(17, '巫師', '1,2', '1,3', '1,2', '2,5', 28, 30, 80, 30, 0, '0,1', '1,3', '1', '1', '1.2', '1', '1', '1', 0, 0, 0, 0, '1', '1', '1', '1', '1', '0'),
(18, '鬥士', '2,5', '2,3', '1,4', '1,2', 84, 38, 0, 31, 90, '0,1', '0,2', '1', '1', '1', '1', '1', '1', 0, 0, 0, 0, '1', '0.8', '1', '1', '1', '0'),
(19, '遊俠', '2,4', '2,4', '1,3', '1,3', 91, 101, 50, 36, 0, '0,1', '0,3', '1', '1', '1', '1', '1', '1', 0, 0, 0, 0, '1', '1', '1', '1', '0.8', '0'),
(20, '妖師', '1,3', '1,3', '1,2', '2,5', 30, 70, 110, 36, 0, '0,1', '1,3', '1', '1', '1', '1', '1', '1', 0, 0, 0, 0, '1', '1', '1', '0.8', '1', '0'),
(21, '勇者', '3,6', '2,5', '1,4', '2,4', 350, 350, 350, 100, 350, '1,2', '1,3', '1.1', '1.1', '1.1', '1.1', '1.1', '1', 0, 0, 0, 1, '1', '1', '1', '1', '1', '0'),\r
(22, '神偷', '3,4', '2,5', '1,3', '1,3', 120, 180, 80, 51, 90, '0,1', '0,3', '1', '1', '1', '1', '1', '1', 20, 0, 0, 0, '1', '1', '1', '1', '1', '0'),
(23, '主教', '1,3', '1,4', '1,3', '4,6', 70, 80, 180, 52, 70, '0,1', '1,3', '1', '1', '1', '1', '1', '1', 0, 0, 0, 0, '1', '1', '1', '1', '1', '0.15'),
(24, '領主', '3,6', '2,4', '1,4', '1,3', 180, 120, 70, 50, 160, '0,1', '0,3', '1', '1', '1', '1', '1', '1', 0, 0, 0, 0, '0.8', '1', '1', '1', '1', '0'),
(25, '傳奇舞者', '3,4', '3,5', '1,3', '1,4', 180, 300, 180, 71, 180, '1,3', '0,4', '1', '1', '1', '1', '1', '1', 10, 0, 0, 2, '1', '1', '1', '1', '1', '0'),
(26, '賢者', '1,3', '1,4', '1,3', '3,6', 167, 180, 253, 73, 167, '1,2', '1,4', '1', '1', '1', '1.2', '1', '1', 0, 0, 0, 0, '1', '1', '1', '1', '1', '0.1'),
(27, '戰神', '3,7', '2,4', '1,4', '1,3', 270, 200, 150, 75, 255, '0,1', '0,3', '1', '1.2', '1', '1.2', '1', '1', 0, 0, 0, 0, '1', '1', '1', '1', '1', '0'),
(28, '聖騎士', '3,8', '2,4', '2,4', '1,3', 550, 400, 300, 115, 520, '1,2', '0,3', '1', '1', '1', '1', '1', '1', 0, 0, 15, 0, '1', '1', '1', '1', '1', '0.02'),
(29, '忍者', '3,5', '3,6', '2,4', '1,4', 470, 550, 360, 115, 470, '0,1', '1,3', '1', '1', '1', '1', '1', '1', 20, 20, 0, 0, '1', '1', '1', '1', '1', '0'),
(30, '大賢者', '1,3', '1,4', '1,4', '4,7', 200, 390, 600, 115, 350, '1,2', '1,4', '1', '1', '1', '1', '1', '1', 0, 0, 0, 0, '0.8', '1', '1', '0.8', '1', '0'),
(31, '英雄', '4,8', '2,4', '2,4', '1,4', 900, 600, 400, 200, 750, '1,2', '0,3', '1.2', '1', '1', '1', '1', '1', 15, 0, 0, 1, '1', '1', '1', '1', '1', '0'),
(32, '風魔', '4,7', '3,7', '2,4', '2,4', 780, 900, 500, 200, 750, '1,2', '1,4', '1', '1', '1', '1', '1', '1', 0, 100, 0, 0, '1', '1', '1', '1', '1', '0'),
(33, '召喚師', '1,3', '1,4', '1,4', '4,8', 350, 500, 900, 200, 480, '1,2', '2,4', '1', '1', '1.5', '1', '1', '1', 0, 0, 0, 0, '1', '1', '1', '1', '1', '0'),
(34, '龍魂', '5,8', '2,4', '2,4', '1,4', 1600, 1000, 800, 308, 1400, '0,1', '1,3', '1.5', '1', '1', '1', '1', '1', 0, 0, 0, 0, '1', '1', '1', '1', '1', '0'),
(35, '精靈王', '2,3', '1,4', '1,4', '4,9', 800, 1000, 1600, 312, 1000, '0,1', '2,4', '1', '1.2', '1', '1.5', '1', '1', 0, 0, 0, 0, '1', '1', '1', '1', '1', '0'),
(36, '傳說', '4,8', '3,8', '2,4', '2,4', 1400, 1400, 1000, 315, 1200, '0,1', '1,4', '1.1', '1.1', '1.1', '1.1', '1.1', '1', 0, 0, 0, 1, '1', '1', '1', '1', '1', '0');
[/php]


我再測試多一次發現只有\r

(8, '盜賊', '1,3', '1,3', '0,2', '0,1', 0, 0, 0, 1, 0, '0,1', '0,2', '1', '1', '1', '1', '1', '1.2', 0, 0, 0, 0, '1', '1', '1', '1', '1', '0'),

這一段不能匯入...大大能幫幫我嗎?[/code]

發表於 : 2004-09-01 20:30
messagebox
盜賊並不是中文衝碼~
我自己測試一下~

都不會出錯耶~
語法來說~也都是正確~

用手動方式增加吧~

發表於 : 2004-09-01 20:35
quoll
謝謝大大...
不過我就是用手動方式增加......

發表於 : 2004-09-01 21:36
quoll
我進入了wog的首頁,
可是中間不知出了甚麼問題而空白...
是不是沒有匯入(8, '盜賊', '1,3', '1,3', '0,2', '0,1', 0, 0, 0, 1, 0, '0,1', '0,2', '1', '1', '1', '1', '1', '1.2', 0, 0, 0, 0, '1', '1', '1', '1', '1', '0'),
的關係?

而在config.php內是不是這樣?我是用lycos的db...
// hostname or ip of server
$servername='localhost';

// username and password to log onto db server
$dbusername='XXX';
$dbpassword='XXX';
(↑用不用填password,我登入之後那裡說沒有password,
那是不是漏空?)

// name of database
$dbname='quollmax_uk_db';

發表於 : 2004-09-01 22:04
messagebox
quoll 寫:我進入了wog的首頁,
可是中間不知出了甚麼問題而空白...
是不是沒有匯入(8, '盜賊', '1,3', '1,3', '0,2', '0,1', 0, 0, 0, 1, 0, '0,1', '0,2', '1', '1', '1', '1', '1', '1.2', 0, 0, 0, 0, '1', '1', '1', '1', '1', '0'),
的關係?
不知道~因為完全沒說錯誤訊息~或給錯誤連結~
(↑用不用填password,我登入之後那裡說沒有password,
那是不是漏空?)
需不需要輸入是看你的MYSQL裡權限的設定

發表於 : 2004-09-02 19:54
quoll
messagebox 寫: 不知道~因為完全沒說錯誤訊息~或給錯誤連結~
需不需要輸入是看你的MYSQL裡權限的設定
[/quote]

錯誤信息是\r
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 '1,3', '1,3', '0,2', '0,1', 0, 0, 0, 1, 0, '0,1', '0,2', '1', '1
在第一張帖已說了...
我登入lycos之後那裡顯示不用password登入db,
那是在該項漏空還是輸入其他文字...?
錯誤頁面是...
http://members.lycos.co.uk/quollmax/phpBB2/wog
各位大大...能幫幫我嗎?

發表於 : 2004-09-02 21:13
quoll
我把sql重新匯入一次...
今次是把整個檔案匯入,
它顯示
Your SQL-query has been executed successfully :
The content of your file has been inserted. (43 Instructions)
是不是成功了?
但中間還是空白...是不是config.php的問題?

發表於 : 2004-09-02 21:50
ETERNAL
我猜大概是那個廣告的關係吧\r
造成原來遊戲的javascript錯誤

發表於 : 2004-09-03 21:09
quoll
真的嗎?
各位用lycos的大大,
在config.php裡,
$servername='localhost';
$dbpassword='XXX';
這樣改對嗎?
XXX應該是漏空?因為網頁顯示我的資料庫係no password need...
還是輸入登入網站或是登入ftp的password?
還是.....像上面的大大所說因為廣告的關係?
謝謝大家...