Difference between revisions of "Next Steps"
Jump to navigation
Jump to search
DarksHeiress (talk | contribs) (Created page with "== Introduction == Welcome! This is the next part in our EVEmu tutorial. At this point you should have a working server and client and be able to connect. We're going to cover...") |
DarksHeiress (talk | contribs) |
||
Line 17: | Line 17: | ||
# Click Enter | # Click Enter | ||
# <code>Ctrl + X</code> | # <code>Ctrl + X</code> | ||
+ | # Run your build again by running <code>docker-compose -p evemu up -d</code> | ||
# Assuming you already have the mysql client installed run <code>mysql -u evemu -p -h 127.0.0.1 < sql/seed_and_clean/seed_market.sql</code> from the evemu_Crucible folder. | # Assuming you already have the mysql client installed run <code>mysql -u evemu -p -h 127.0.0.1 < sql/seed_and_clean/seed_market.sql</code> from the evemu_Crucible folder. | ||
# You will be prompted for a password. Enter <code>evemu</code> | # You will be prompted for a password. Enter <code>evemu</code> | ||
Line 26: | Line 27: | ||
# If this command returns data you now have a successfully seeded market. | # If this command returns data you now have a successfully seeded market. | ||
## NOTE: The script that we ran in Step 9 currently only seeds the Derelik Region. If you'd like to seed others please change the <code>regionID</code> variable in the <code>seed_market.sql</code> script | ## NOTE: The script that we ran in Step 9 currently only seeds the Derelik Region. If you'd like to seed others please change the <code>regionID</code> variable in the <code>seed_market.sql</code> script | ||
+ | # Now with your market successfully seeded we suggest undoing steps 4 and 5 by replacing the comments and rerunning step 9. This makes your database no longer accessible from anywhere protecting it. | ||
==== Source Seeding ==== | ==== Source Seeding ==== |
Revision as of 02:00, 7 April 2021
Introduction
Welcome! This is the next part in our EVEmu tutorial. At this point you should have a working server and client and be able to connect. We're going to cover a couple different topics here so please check the Contents to find out what exactly you're looking for.
Market Seeding
The EVEmu Market by default comes unseeded. This means that there are no buy or sell orders populated into the database. We're going to cover how to fix that.
Docker Seeding
To be able to seed our market with the EVEmu docker setup we have to make a few changes to the docker-compose.yml
- Locate your root EVEmu directory
- Assuming you are on linux run
nano docker-compose.yml
- You should be presented with something like Figure 1
- There are two changes you need to make here. Change
#ports:
to beports:
. Do this by removing the # in front of the line - Next remove the # in front of
# - "3306:3306"
so that it looks like- "3306:3306"
Ctrl + O
- Click Enter
Ctrl + X
- Run your build again by running
docker-compose -p evemu up -d
- Assuming you already have the mysql client installed run
mysql -u evemu -p -h 127.0.0.1 < sql/seed_and_clean/seed_market.sql
from the evemu_Crucible folder. - You will be prompted for a password. Enter
evemu
- This will take awhile to complete. Once it is done run
mysql -u evemu -p -h 127.0.0.1
- This will bring you into the mysql client connected to the EVEmu database.
- Insert
use evemu;
- Click Enter
- Now run
select * from mktOrders LIMIT 10;
This command grabs the top 10 entries in the mktOrders table. - If this command returns data you now have a successfully seeded market.
- NOTE: The script that we ran in Step 9 currently only seeds the Derelik Region. If you'd like to seed others please change the
regionID
variable in theseed_market.sql
script
- NOTE: The script that we ran in Step 9 currently only seeds the Derelik Region. If you'd like to seed others please change the
- Now with your market successfully seeded we suggest undoing steps 4 and 5 by replacing the comments and rerunning step 9. This makes your database no longer accessible from anywhere protecting it.
Source Seeding
- Locate your root EVEmu directory
- Assuming you already have the mysql client installed run
mysql -u evemu -p -h 127.0.0.1 < sql/seed_and_clean/seed_market.sql
from the evemu_Crucible folder. - You will be prompted for a password. Enter your evemu users password.
- This will take awhile to complete. Once it is done run
mysql -u evemu -p -h 127.0.0.1
- This will bring you into the mysql client connected to the EVEmu database.
- Insert
use evemu;
- Click Enter
- Now run
select * from mktOrders LIMIT 10;
This command grabs the top 10 entries in the mktOrders table. - If this command returns data you now have a successfully seeded market.
- NOTE: The script that we ran in Step 9 currently only seeds the Derelik Region. If you'd like to seed others please change the
regionID
variable in theseed_market.sql
script
- NOTE: The script that we ran in Step 9 currently only seeds the Derelik Region. If you'd like to seed others please change the