a. Go to https://dev.mysql.com/downloads/windows/installer/8.0.html
b. Download the 437.3M version
c. Click No thanks, just start my download
d. Start the installation process
e. Choose Server only
f. Follow the installer's instructions
g. Choose 1234
as your password
a. In the Windows search, find and go to MySQL 8.0 Command Line Client
b. Enter your password (1234
)
c. Enter the following commands:
CREATE DATABASE test;
use test;
CREATE TABLE id (current_id int);
CREATE TABLE data (id int, username varchar(255), password text, pos_x int, pos_y int, health int, strength int, resistance int, xp int, inventory json, PRIMARY KEY(id));
INSERT INTO id VALUES(1);
a. Open the windows command line (cmd)
b. Enter the following commands:
pip install sqlalchemy
pip install mysqlclient
a. Go to RUN
-> Edit Configurations
b. Choose the client's main (Mikmak-3\client_files\code\main.py
)
c. Check Allow parallel run
in the top right
d. Do the same for the normal server's main (Mikmak-3\server_files_normal\main.py
)
a. Run the central server (central_server_files\main.py
)
b. Run a normal server (server_files_normal\main.py
)
c. Change the server_index
(right after the normal server's main function) to 1
instead of 0
d. Run the normal server again (server_files_normal\main.py
)
e. Press ENTER
in both servers' console
f. Run as many clients as you wish (client_files\main.py
)