Install the Database
Get L2J CLI
L2J CLI is a tool that allows us to implement automated deployments and initial configurations.
mkdir -p /opt/l2j/cli
cd /opt/l2j/cli
wget https://l2jserver.com/files/binary/cli/l2jcli-1.1.0.zip -P /tmp
unzip /tmp/l2jcli-*.zip -d /opt/l2j/cli
chmod 755 l2jcli.sh
Configure the CLI
Inside the folder config edit both files login-server.properties
and game-server.properties
and
configure DatabaseUser
and DatabasePassword
accordingly to
the user and password that has been configured for the database.
Execute the CLI
Run l2jcli.sh and run the following commands:
db install -sql /opt/l2j/server/login/sql -u l2j -p l2jserver2019 -m FULL -t LOGIN -c -mods
db install -sql /opt/l2j/server/game/sql -u l2j -p l2jserver2019 -m FULL -t GAME -c -mods
quit
The parameters are:
Parameter | Description |
---|---|
-sql path | Path to SQL files |
-u user | Database user |
-p password | Database password |
-m mode | Installation mode FULL or UPDATE |
-t type | Server type LOGIN or GAME |
-c | Install custom tables |
-mods | Install mods tables |
Create Administrator Account
Use the L2J CLI to create an administrator account, 8 is the maximum account level (master).
Run l2jcli.sh and run the following commands:
account create -u Zoey76 -p -a 8
quit