Add admin creation script

This commit is contained in:
Tim 2025-03-04 15:58:21 +01:00
parent 3e172b6f1b
commit 5b18ccdd66
2 changed files with 6 additions and 0 deletions

3
admin.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
sudo mysql < admin.sql

3
admin.sql Normal file
View File

@ -0,0 +1,3 @@
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'admin';
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;