Script Changes and User creation
This commit is contained in:
1
.dbeaver/project-metadata.json
Normal file
1
.dbeaver/project-metadata.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"resources":{"Scripts/Script.sql":{"default-datasource":"mariaDB-19718889e27-1755aa8a4159aba3"}}}
|
||||||
0
Scripts/Script.sql
Normal file
0
Scripts/Script.sql
Normal file
8
Scripts/mariadb-create-user.sql
Normal file
8
Scripts/mariadb-create-user.sql
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
SELECT User, Host FROM mysql.user WHERE Host <> 'localhost';
|
||||||
|
|
||||||
|
|
||||||
|
drop user 'ghost'@'%';
|
||||||
|
|
||||||
|
CREATE USER 'ghost'@'%' IDENTIFIED BY 'ghost';
|
||||||
|
|
||||||
|
GRANT ALL PRIVILEGES ON ghost.* TO 'ghost'@'%' WITH GRANT OPTION;
|
||||||
Reference in New Issue
Block a user