I cannot create a database, although there are hosts in databases hosts, both hosts are on the local machine where the panel is installed.
The restriction for the server on the use of databases has been removed.
The user has all privileges.
This user is not a prerodactyluser
#[decided] sql error
14 messages · Page 1 of 1 (latest)
Attached to node, nothing changed
You'll need to grab the error logs from the Panel. The following command uploads the last 150 lines of this day's log to our pastebin and provides a link you can share.
tail -n 150 /var/www/pterodactyl/storage/logs/laravel-$(date +%F).log | nc pteropaste.com 99
I have found the following for: https://pteropaste.com/8ir6zdi0zfbz/
🇫🇷 🥖 Bienvenue sur Internet, @hallow sedge 🥖 🇫🇷
Your database is refusing the Panel's attempts to connect to it. This can be for a number of different reasons so I'll let a human double check, but here are some ideas.
- Is your MySQL instance running?
systemctl status mysql(hopefully not down the road) - Is the user you're trying to connect with authorized to access the given database from this IP address?
- Did you correctly give that user permission to even access that database?
- Do you have a Firewall that is blocking connections?
- Is your MySQL instance bound to
127.0.0.1orlocalhostand you're trying to connect from outside the server? - Does the user have
GRANTpermissions if you're trying to use them to create a new database for a server? - Have special characters in your password? Make sure DB_PASSWORD in your .env file is enclosed in double quotes
Here is some additional documentation to help you out: https://pterodactyl.io/tutorials/mysql_setup.html
MySql works. The user has ALL permissions. There are no special characters in the password.
The user is missing grant permissions (no 6 from the bots list)
GRANT ALL PRIVILEGES ON test_database . * TO 'test_user'@'localhost';
I used this command to give the user rights, what did I do wrong right?
Pterodactyl is an open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
God! thank you very much Boy132! I'm so tormented with these databases. Thank you from the bottom of my heart!
I have 1 more question.
Can I use pterodactyluser as user for mysql?
Or is it worth creating a separate one as I did?
You can name the user whatever you want