📦Setup MySQL
Use a MariaDB/MySQL database in nLogin.
Creating your database:
Pterodactyl
Go to the
Databases
tab and create your database if it doesn't exist.Click on the "New database" button to create a new database.
Choose a name for your database and click the "Create database" button.
MySQL shell
Use the command
sudo mysql
(orsudo mariadb
) to enter the MySQL shell.Set the InnoDB engine in the current session.
SET storage_engine=InnoDB
Create the database with the desired name. MySQL 8.0
CREATE DATABASE <nome da database> CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci
Other versions:CREATE DATABASE <nome da database> CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
Grant the user basic privileges on the newly created database.
GRANT ALTER, DROP, SELECT, INSERT, UPDATE, DELETE ON <database name> TO <user name>@'localhost' IDENTIFIED BY '<user's password>'
Required data:
You will need four pieces of data generated in the previous step.
IP address.
Database name.
User name.
Password.
Configuration:
Go to the file /plugins/nLogin/config.yml
. Look for the "database" section and enter the information in the "hostname", "database", "username" and "password" fields, as in the example below.
Last updated