Saisho Posted January 9, 2013 Group: Members Topic Count: 52 Topics Per Day: 0.01 Content Count: 185 Reputation: 20 Joined: 01/06/13 Last Seen: November 11, 2018 Share Posted January 9, 2013 thats my first try making a sql server (txt never was an issue sever side) and i was following both wiki and sharpienero tutorial and it went fine until i try to add the logs.sql... 18:21:26 login#PickLog types (M)onsters Drop, (P)layers Drop/Take, Mobs Drop (L)oot Drop/Take, # Players (T)rade Give/Take, Players (V)ending Sell/Take, (S)hop Sell/Take, (N)PC Give/Take, # ©onsumable Items, (A)dministrators Create/Delete, Sto®age, (G)uild Storage, # (E)mail attachment,(B)uying Store, Pr(O)duced Items/Ingredients, Auct(I)oned Items, # (X) Other, (D) Stolen from mobs, (U) MVP Prizes #Database: ragnarok #Table: picklog CREATE TABLE `picklog` ( `id` int(11) NOT NULL auto_increment, `time` datetime NOT NULL default '0000-00-00 00:00:00', `char_id` int(11) NOT NULL default '0', `type` enum('M','P','L','T','V','S','N','C','A','R','G','E','B','O','I','X','D','U') NOT NULL default 'P', `nameid` int(11) NOT NULL default '0', `amount` int(11) NOT NULL default '1', `refine` tinyint(3) unsigned NOT NULL default '0', `card0` int(11) NOT NULL default '0', `card1` int(11) NOT NULL default '0', `card2` int(11) NOT NULL default '0', `card3` int(11) NOT NULL default '0', `unique_id` bigint(20) unsigned NOT NULL default '0', `map` varchar(11) NOT NULL default '', PRIMARY KEY (`id`), INDEX (`type`) ) ENGINE=MyISAM AUTO_INCREMENT=1 Error Code: 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 'login#PickLog types (M)onsters Drop, (P)layers Drop/Take, Mobs Drop (L)oot Drop/' at line 1 0.000 sec since i just started reading the basics of sql i have no idea what that means. can someone give me a hand w/ this? Quote Link to comment Share on other sites More sharing options...
Patotron Posted January 9, 2013 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 27 Reputation: 7 Joined: 08/01/12 Last Seen: April 28, 2023 Share Posted January 9, 2013 (edited) At the end of the code I think you need to put ; like this ) ENGINE=MyISAM AUTO_INCREMENT=1 ; Maybe is this, or maybe error ignore this, but try to put the ; at the end. PD: I think this post is on wrong site. Edited January 9, 2013 by TxusToni Quote Link to comment Share on other sites More sharing options...
Saisho Posted January 9, 2013 Group: Members Topic Count: 52 Topics Per Day: 0.01 Content Count: 185 Reputation: 20 Joined: 01/06/13 Last Seen: November 11, 2018 Author Share Posted January 9, 2013 thx for the reply i just dont see where the error is... i didnt touched the file at all, except the basic ip/id/pass config, i just downloaded and tried to add to the sql db. login#PickLog types (M)onsters Drop, (P)layers Drop/Take, Mobs Drop (L)oot Drop/Take, # Players (T)rade Give/Take, Players (V)ending Sell/Take, (S)hop Sell/Take, (N)PC Give/Take, # (C)onsumable Items, (A)dministrators Create/Delete, Sto(R)age, (G)uild Storage, # (E)mail attachment,(B)uying Store, Pr(O)duced Items/Ingredients, Auct(I)oned Items, # (X) Other, (D) Stolen from mobs, (U) MVP Prizes #Database: ragnarok #Table: picklog CREATE TABLE `picklog` ( `id` int(11) NOT NULL auto_increment, `time` datetime NOT NULL default '0000-00-00 00:00:00', `char_id` int(11) NOT NULL default '0', `type` enum('M','P','L','T','V','S','N','C','A','R','G','E','B','O','I','X','D','U') NOT NULL default 'P', `nameid` int(11) NOT NULL default '0', `amount` int(11) NOT NULL default '1', `refine` tinyint(3) unsigned NOT NULL default '0', `card0` int(11) NOT NULL default '0', `card1` int(11) NOT NULL default '0', `card2` int(11) NOT NULL default '0', `card3` int(11) NOT NULL default '0', `unique_id` bigint(20) unsigned NOT NULL default '0', `map` varchar(11) NOT NULL default '', PRIMARY KEY (`id`), INDEX (`type`) ) ENGINE=MyISAM AUTO_INCREMENT=1 ; #ZenyLog types (M)onsters,(T)rade,(V)ending Sell/Buy,(S)hop Sell/Buy,(N)PC Change amount,(A)dministrators,(E)Mail,(B)uying Store #Database: ragnarok #Table: zenylog CREATE TABLE `zenylog` ( `id` int(11) NOT NULL auto_increment, `time` datetime NOT NULL default '0000-00-00 00:00:00', `char_id` int(11) NOT NULL default '0', `src_id` int(11) NOT NULL default '0', `type` enum('T','V','P','M','S','N','D','C','A','E','I','B') NOT NULL default 'S', `amount` int(11) NOT NULL default '0', `map` varchar(11) NOT NULL default '', PRIMARY KEY (`id`), INDEX (`type`) ) ENGINE=MyISAM AUTO_INCREMENT=1 ; #Database: ragnarok #Table: branchlog CREATE TABLE `branchlog` ( `branch_id` mediumint(9) unsigned NOT NULL auto_increment, `branch_date` datetime NOT NULL default '0000-00-00 00:00:00', `account_id` int(11) NOT NULL default '0', `char_id` int(11) NOT NULL default '0', `char_name` varchar(25) NOT NULL default '', `map` varchar(11) NOT NULL default '', PRIMARY KEY (`branch_id`), INDEX (`account_id`), INDEX (`char_id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 ; #Database: ragnarok #Table: mvplog CREATE TABLE `mvplog` ( `mvp_id` mediumint(9) unsigned NOT NULL auto_increment, `mvp_date` datetime NOT NULL default '0000-00-00 00:00:00', `kill_char_id` int(11) NOT NULL default '0', `monster_id` smallint(6) NOT NULL default '0', `prize` int(11) NOT NULL default '0', `mvpexp` mediumint(9) NOT NULL default '0', `map` varchar(11) NOT NULL default '', PRIMARY KEY (`mvp_id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 ; #Database: ragnarok #Table: atcommandlog CREATE TABLE `atcommandlog` ( `atcommand_id` mediumint(9) unsigned NOT NULL auto_increment, `atcommand_date` datetime NOT NULL default '0000-00-00 00:00:00', `account_id` int(11) unsigned NOT NULL default '0', `char_id` int(11) unsigned NOT NULL default '0', `char_name` varchar(25) NOT NULL default '', `map` varchar(11) NOT NULL default '', `command` varchar(255) NOT NULL default '', PRIMARY KEY (`atcommand_id`), INDEX (`account_id`), INDEX (`char_id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 ; #Database: ragnarok #Table: npclog CREATE TABLE `npclog` ( `npc_id` mediumint(9) unsigned NOT NULL auto_increment, `npc_date` datetime NOT NULL default '0000-00-00 00:00:00', `account_id` int(11) unsigned NOT NULL default '0', `char_id` int(11) unsigned NOT NULL default '0', `char_name` varchar(25) NOT NULL default '', `map` varchar(11) NOT NULL default '', `mes` varchar(255) NOT NULL default '', PRIMARY KEY (`npc_id`), INDEX (`account_id`), INDEX (`char_id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 ; #ChatLog types Gl(O)bal,(W)hisper,(P)arty,(G)uild,(M)ain chat #Database: ragnarok #Table: chatlog CREATE TABLE `chatlog` ( `id` bigint(20) NOT NULL auto_increment, `time` datetime NOT NULL default '0000-00-00 00:00:00', `type` enum('O','W','P','G','M') NOT NULL default 'O', `type_id` int(11) NOT NULL default '0', `src_charid` int(11) NOT NULL default '0', `src_accountid` int(11) NOT NULL default '0', `src_map` varchar(11) NOT NULL default '', `src_map_x` smallint(4) NOT NULL default '0', `src_map_y` smallint(4) NOT NULL default '0', `dst_charname` varchar(25) NOT NULL default '', `message` varchar(150) NOT NULL default '', PRIMARY KEY (`id`), INDEX (`src_accountid`), INDEX (`src_charid`) ) ENGINE=MyISAM AUTO_INCREMENT=1 ; #Database: ragnarok #Table: loginlog CREATE TABLE `loginlog` ( `time` datetime NOT NULL default '0000-00-00 00:00:00', `ip` varchar(15) NOT NULL default '', `user` varchar(23) NOT NULL default '', `rcode` tinyint(4) NOT NULL default '0', `log` varchar(255) NOT NULL default '', INDEX (`ip`) ) ENGINE=MyISAM ; logs.sql Quote Link to comment Share on other sites More sharing options...
Patotron Posted January 9, 2013 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 27 Reputation: 7 Joined: 08/01/12 Last Seen: April 28, 2023 Share Posted January 9, 2013 The error is at the top of the file. login#PickLog types (M)onsters Drop, (P)layers Drop/Take, Mobs Drop (L)oot Drop/Take, Login#text , login is uncomented, try to edit the first line like this #login PickLog types (M)onsters Drop, (P)layers Drop/Take, Mobs Drop (L)oot Drop/Take, Or only delete he first word "login". I think thats the error. Sorry for bad english 1 Quote Link to comment Share on other sites More sharing options...
Saisho Posted January 9, 2013 Group: Members Topic Count: 52 Topics Per Day: 0.01 Content Count: 185 Reputation: 20 Joined: 01/06/13 Last Seen: November 11, 2018 Author Share Posted January 9, 2013 oh it works!! tyvm :3 i still have a lot to learn xD Quote Link to comment Share on other sites More sharing options...
Question
Saisho
thats my first try making a sql server (txt never was an issue sever side) and i was following both wiki and sharpienero tutorial and it went fine until i try to add the logs.sql...
since i just started reading the basics of sql i have no idea what that means.
can someone give me a hand w/ this?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.