From c8d7699b9e91cda4f533ba9e3164997726a820c8 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 10 Oct 2021 13:15:07 +0300 Subject: [PATCH] docs(panel): display database setup Display the database setup steps in the same guide instead of redirecting to a separate MySQL guide. Unfortunately, many users easily skip over this step. --- panel/1.0/getting_started.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/panel/1.0/getting_started.md b/panel/1.0/getting_started.md index b05ec791..0ab363b8 100644 --- a/panel/1.0/getting_started.md +++ b/panel/1.0/getting_started.md @@ -94,11 +94,23 @@ chmod -R 755 storage/* bootstrap/cache/ ``` ## Installation + Now that all of the files have been downloaded we need to configure some core aspects of the Panel. ::: tip Database Configuration You will need a database setup and a user with the correct permissions created for that database before -continuing any further. If you are unsure how to do this, please have a look at [Setting up MySQL](/tutorials/mysql_setup.html). +continuing any further. See below to create a user and database for your Pterodactyl panel quickly. To find more detailed information +please have a look at [Setting up MySQL](/tutorials/mysql_setup.html). + +```sql +mysql -u root -p + +# Remember to change 'yourPassword' below to be a unique password +CREATE USER 'pterodactyl'@'127.0.0.1' IDENTIFIED BY 'yourPassword'; +CREATE DATABASE panel; +GRANT ALL PRIVILEGES ON panel.* TO 'pterodactyl'@'127.0.0.1' WITH GRANT OPTION; +``` + ::: First we will copy over our default environment settings file, install core dependencies, and then generate a