This page will guide you through setting up a MySQL database user for Pterodactyl. Follow each step carefully in the given order.
Before we touch the VPS terminal, lets make sure the panel is ready.
After you logged in on your pterodactyl panel, we are heading to the VPS terminal again. Open your preferred SSH client (for example Termius or PuTTY) and connect to your VPS. Then login as root again:
su root
Enter your root password and press enter.
Once logged in as root, open the MySQL prompt.
mysql
Create a new database user that Pterodactyl will use.
CREATE USER 'yourDatabaseUsername'@'yourVPSIpAddress' IDENTIFIED BY 'YourPassword';
;
->
yourDatabaseUsername
yourVPSIpAddress
YourPassword
Grant full permissions to the newly created user.
GRANT ALL PRIVILEGES ON *.* TO 'yourDatabaseUsername'@'yourVPSIpAddress' WITH GRANT OPTION;
Apply all permission changes by flushing privileges.
FLUSH PRIVILEGES;
Return to your Pterodactyl panel and fill in the database form:
3306
node.yourdomain.com
You successfully connected a database to the panel! You can now start allocation databases for each server and create them!