mirror of
https://github.com/tommytran732/Pterodactyl-Script
synced 2024-11-22 18:41:32 -05:00
Fixed permission issues with MariaDB
This commit is contained in:
parent
18ff77d725
commit
906f8046b0
@ -322,7 +322,7 @@ install_pterodactyl() {
|
|||||||
Q1="CREATE DATABASE IF NOT EXISTS panel;"
|
Q1="CREATE DATABASE IF NOT EXISTS panel;"
|
||||||
Q2="SET old_passwords=0;"
|
Q2="SET old_passwords=0;"
|
||||||
Q3="GRANT ALL ON panel.* TO 'pterodactyl'@'127.0.0.1' IDENTIFIED BY '$password';"
|
Q3="GRANT ALL ON panel.* TO 'pterodactyl'@'127.0.0.1' IDENTIFIED BY '$password';"
|
||||||
Q4="GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, INDEX, DROP, EXECUTE, PROCESS, RELOAD, LOCK TABLES, CREATE USER ON *.* TO 'admin'@'$SERVER_IP' IDENTIFIED BY '$adminpassword' WITH GRANT OPTION;"
|
Q4="GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, INDEX, DROP, CREATE ROUTINE, ALTER ROUTINE, EXECUTE, PROCESS, RELOAD, LOCK TABLES, CREATE USER ON *.* TO 'admin'@'$SERVER_IP' IDENTIFIED BY '$adminpassword' WITH GRANT OPTION;"
|
||||||
Q5="SET PASSWORD FOR 'root'@'localhost' = PASSWORD('$rootpassword');"
|
Q5="SET PASSWORD FOR 'root'@'localhost' = PASSWORD('$rootpassword');"
|
||||||
Q6="DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');"
|
Q6="DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');"
|
||||||
Q7="DELETE FROM mysql.user WHERE User='';"
|
Q7="DELETE FROM mysql.user WHERE User='';"
|
||||||
|
Loading…
Reference in New Issue
Block a user