EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Database/World Building (https://www.eqemulator.org/forums/forumdisplay.php?f=596)
-   -   How to import an entire custome sql db (https://www.eqemulator.org/forums/showthread.php?t=43622)

kestrall 04-22-2022 09:59 PM

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?

Huppy 04-23-2022 03:25 AM

Quote:

Originally Posted by kestrall (Post 267986)
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 ;)

https://i.ibb.co/n0RxCbS/source-peqdb.jpg

From there, just wait for it to finish sourcing in. (bunch of garble will go up the screen).


All times are GMT -4. The time now is 05:13 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.