Created Windows Installation (markdown)

DracoMilesX
2016-08-31 07:43:02 +02:00
parent e541c973e4
commit 2da03ebd01

98
Windows-Installation.md Normal file

@@ -0,0 +1,98 @@
# Windows Installation
**This is still a W.i.P**
To install POGOserver on Windows you first are required to install nodejs. Download nodejs from the official site: https://nodejs.org/en/download/current/ download either the x86 or x64 version if you aren't certain which one you need download the x86 version. It does not matter if you pick the .msi or .exe one. Execute the file you have downloaded and follow the download instructions. Basically next next next next.
Just make certain the below is all selected for install (default it is)
![](http://i.imgur.com/nOCfDPx.png)
Further you need MySQL you can host this on the same machine or on a different machine. Download MySQL Installerfrom the official site: http://dev.mysql.com/downloads/windows/installer/5.7.html
![]http://i.imgur.com/d2b8cAY.png)
Download the web installer and run it. Accept the terms and click Next.
Here you have a list of different setups.
You can pick the Custom option and add MySQL Workbench and Utilities yourself the MySQL Server is default included.
![](http://i.imgur.com/o20GYGu.png)
Continue following the installer and let it download/install the files. Afterwards you get the option to configure MySQL do this.
At this screen
![](http://i.imgur.com/zDLUezQ.png)
You can select at Config Type 3 different options leave it at Development Machine unless you are an advanced user.
Fill at the next screen a password in for the root user. At this screen you can add another user as well if you want too but for now it ain't necessary. Leave the settings as default at the Windows Service screen.
![](http://i.imgur.com/2l8iRTs.png)
Click next on the Plugins and Extensions screen and then click Execute at the Apply Server Configuration screen. Let it install and continue the wizard afterwards. Let it open MySQL Workbench in the end.
![](http://i.imgur.com/zd8u2IY.png)
Connect with the Local instance that is in your MySQL Workbench. For the first time you require to type in the MySQL root password you entered earlier during the setup check "Save password in vault" if you don't want to type it in every time you connect.
You will see the following screen:
![](http://i.imgur.com/jgw6m7L.png)
Type in `CREATE DATABASE pogosql` in the Query 1 field as seen above click then on the first Thunder icon. ![](http://i.imgur.com/4Ed3Rph.png)
Click the refresh button under SCHEMAS ![](http://i.imgur.com/8eLRR0c.png) and you will see the database added.
Now you can create a different user in case you don't want to use the root user.
Go to `Users and Privileges` under `Management` and click `Add User`.
![](http://i.imgur.com/ve20A3u.png)
Fill in a `Login Name` and choose a good password.
Go to the tab `Schema Privileges` and click `Add Entry...`
Select here `Selected schema:` and select the schema you created earlier and then click `ok`.
![](http://i.imgur.com/UGl5oXm.png)
Afterwards click on `Select "ALL"` so it has every right on the added schema then click `Apply`.
Now you can close the MySQL Workbench.
**The google protobuf isn't tested yet and I am not certain if you need it fully. If anyone can assist with it that would be great.**
Follow the official README/setup to get google protobuf: https://github.com/google/protobuf/blob/master/cmake/README.md
Now download the official POGOserver source zip from maierfelix.
![](http://i.imgur.com/fQcmZCW.png)
Extract the downloaded zip with your preferred extractor (Default Windows extractor, WinRar, 7-Zip, etc...)
Copy and rename the `cfg.js.example` to `cfg.js` and place it in the same folder.
Modify the following section:
````js
// MySQL credentials
MYSQL_PORT: 3306,
MYSQL_HOST_IP: "127.0.0.1",
MYSQL_DB_NAME: "pogosql",
MYSQL_USERNAME: "root",
MYSQL_PASSWORD: "",
````
````js
// Used for asset download session
DOWNLOAD_PROVIDER: "GOOGLE",
DOWNLOAD_USERNAME: "USERNAME",
DOWNLOAD_PASSWORD: "PASSWORD",
````
Only change `MYSQL_PORT` if you knew what you are doing and changed it yourself after you installed MySQL. Change `MYSQL_HOST_IP` when the MySQL server is running on another machine then the machine your trying to install POGOserver on.
Change `MYSQL_DB_NAME` if you wan't another name for your database to make it more clear what it is used for (ex. pogoserver)
Change `MYSQL_USERNAME` if you created a separate user for the database default user is root that has access to all databases your running.
Change `MYSQL_PASSWORD` to the password you used for your root account or an alternate account.
Once this is all ready go the the folder your POGOserver is placed. First run the `install-windows.bat` and wait for this to finish and succeed. Once this is done you can run the `run-windows.bat`.
Suggested way to run the .bat files is as followed:
Hold `Shift` and right click into the folder. Then Click `Open command window here`
![](http://i.imgur.com/RyWPcxd.png)
Type `install-windows.bat` if you type in `inst` and press the tab key on your keyboard it automatically fills the rest in then wait for it to finish and succeed. Afterwards do the same with `run-windows.bat`
You're server should be up and running then.