Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-22-2022, 09:59 PM
kestrall
Fire Beetle
 
Join Date: Apr 2016
Posts: 3
Default How to import an entire custome sql db

So I am able to get a vanilla eqemu server up and running. But I was given a db from a "classic"ish server to playtest,and it is 1 sql file. How do I get my server to use that file instead?
Reply With Quote
  #2  
Old 04-23-2022, 03:25 AM
Huppy's Avatar
Huppy
Demi-God
 
Join Date: Oct 2010
Posts: 1,333
Default

Quote:
Originally Posted by kestrall View Post
How do I get my server to use that file instead?
Most will use an sql editor (such as navicat, or whatever), but if you want to do it right from a windows command prompt, you would have to (first) create a new database in your mysql/mariadb. (something with a different name than the existing one). THEN, after getting that new database sourced in, you would have to go into your server config files and change all values referencing the name of the database, to the new database name.

In the following example, there is a file called peqdb.sql in the windows user downloads folder. This will show to cd to that folder, log into mysql, create a new database (called peqdb), then source in the new file:

CAUTION: If that new database is really old, there may be issues (between the older database and the modern source code binaries) when you start up the server. If that happens and you get all sorts of mysql errors, you're going to open up a can of worms, that you wished you hadn't



From there, just wait for it to finish sourcing in. (bunch of garble will go up the screen).
__________________
Hanging out at Antonica.World
Reply With Quote
Reply

Tags
source new database, use new database

Thread Tools
Display Modes

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 03:17 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3