Log in

View Full Version : sql noob


SVVS
02-02-2002, 01:24 PM
ok, today is my first time with this emulator und sql.
i found a link with spawn-loot infos etc.
i have now the infos to copy and paste at the db.sql

but where exactly???

for example:

#
# Table structure for table 'npc_types'
#

CREATE TABLE npc_types (
id int(11) NOT NULL auto_increment,
name text NOT NULL,
level tinyint(2) unsigned NOT NULL default '0',
race tinyint(2) unsigned NOT NULL default '0',
class tinyint(2) unsigned NOT NULL default '0',
hp int(11) NOT NULL default '0',
gender tinyint(2) unsigned NOT NULL default '0',
texture tinyint(2) unsigned NOT NULL default '0',
helmtexture tinyint(2) unsigned NOT NULL default '0',
size tinyint(2) unsigned NOT NULL default '0',
hp_regen_rate int(11) unsigned NOT NULL default '0',
mana_regen_rate int(11) unsigned NOT NULL default '0',
loottable_id int(11) unsigned NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM;

#
# Dumping data for table 'npc_types'
#

where i have to copy the lines?



..yeah i know iam stupid

SVVS
02-02-2002, 02:03 PM
/bonk find it, after dumping data.. right? ;)

madborg
02-02-2002, 04:18 PM
where i have to copy the lines?



..yeah i know iam stupid

first, its not a matter of being stupid...but don't get ahead of the game yet, if you are new. First get the basic part working:
create the eq database, have a admin, import db.sql.
Then get a working version going.

After that, you can play around with cutting and pasting things. I still don't do the above thing and I have done many, many installations.

Baron Sprite
02-04-2002, 07:40 AM
Read through the manuals at mysql's website too, they got a wealth of information there ;)