2025-03-24 01:17:32 -05:00

18 lines
523 B
Plaintext

#MARIA DB
#First run sh run.sh and then paste the contents of this file into the console.
########Set password and permissions for root.
mysql -u root -ppassword
UPDATE user SET password=PASSWORD('your_password') WHERE user='root'; #change your_password
##### localhost permissions
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'password';
########
##### Permissions for all hosts
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'your_password'; #change your_password
#
FLUSH PRIVILEGES;
quit