Add windows instructions for database

This commit is contained in:
Danial 2019-09-20 14:16:27 +12:00 committed by GitHub
parent 74bab533da
commit 49f02f593a

View file

@ -26,11 +26,20 @@ At any point, if you need help, you are free to join our Discord server at: http
## Step 3: Setting up the Database
Since this portion of the guide is operating-system specific, you will either need basic database knowledge or a bit of help. Below are the things that need to be configured.
### General:
- Configure root@localhost to have a blank password
- Create a table in root named `server` and another named `global`
- Import `09HDscape-server/server.sql` and `09HDscape-server/global.sql` into their respective tables
- Start the database
### Windows:
- Download and install [xampp](https://www.apachefriends.org/download.html)
- Start the `Apache` and `MySQL` modules
- Navigate to http://localhost/phpmyadmin/
- Create 2 new tables named `server` and `global`
- Import `09HDscape-server/server.sql` and `09HDscape-server/global.sql` into their respective tables
- _Refer [here](https://www.thecodedeveloper.com/import-large-sql-files-xampp/) for help importing the `.sql` files_
## Step 4: Running the Server & Client
- Run the management-server
- In IntelliJ, navigate to `09HDscape-management-server/src/org/keldagrim/Main.java`, right click > Run