Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Tools

Archive::Tools Archive area for Tools's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-16-2002, 02:38 AM
Bardboy
Hill Giant
 
Join Date: Feb 2002
Location: Area 51
Posts: 157
Default Import tool in EQAdmin

I,m not really sure what im doing but, I think I've figured out how to use that import feature. It may have been posted before but, i couldn't find it.

I used Drawdes db for this. Correct me if im wrong.

Created new db in MYSQL called db2
Sourced it as db2.sql
ran import from EQADMIN
typed in db2 for database at 127.0.0.1

took a long time but, it works like a champ.

You can also take individual text files and import them. when you finish editing, change the .txt extention to .sql, create new database in mysql and source it, then import.
just ad the table structure data like this example for "Zones" :

--
-- Table structure for table 'zone'
--

CREATE TABLE zone (
short_name varchar(16) NOT NULL default '',
file_name varchar(16) default NULL,
long_name text,
safe_x float NOT NULL default '0',
safe_y float NOT NULL default '0',
safe_z float NOT NULL default '0',
minium_level tinyint(3) unsigned NOT NULL default '0',
minium_status tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (short_name)
) TYPE=MyISAM;

you can get that info from the db.sql file.
then add your own or someone elses data...

INSERT INTO zone VALUES ('qeynos',NULL,'South Qeynos',0,10,3,0,0);

use whatever format is used in the main db.sql

There is a way to do this in mysql directly but, this may be easier for some people.
__________________
They say verbal insults hurt more then physical pain. They are of course wrong, as you will soon find out when I put this toasting fork in your head.

Blackadder
Reply With Quote
  #2  
Old 06-16-2002, 01:57 PM
Windcatcher
Demi-God
 
Join Date: Jan 2002
Posts: 1,175
Default

Woot! Someone finally understands!

The import function in the tool is for MERGING DATABASES. Whether it's upgrading with new data, bringing in old data, etc. that's the idea. It looks for duplicate records and remaps primary and foreign keys so everything dovetails nicely.

Wind
Reply With Quote
  #3  
Old 06-17-2002, 12:28 AM
Bardboy
Hill Giant
 
Join Date: Feb 2002
Location: Area 51
Posts: 157
Default

That little proggy really rocks, Windcatcher!

Is it possible (relatively simple hopefully) for you to dump import errors to a text file so I can look at them?

thanks
__________________
They say verbal insults hurt more then physical pain. They are of course wrong, as you will soon find out when I put this toasting fork in your head.

Blackadder
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:33 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3