Skip to content

Commit 299b08f

Browse files
committed
Update install.sql
1 parent 6541f87 commit 299b08f

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

generate/setup/install.sql

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
DELETE FROM mysql.user WHERE User='';
2-
DROP DATABASE test;
3-
DELETE FROM mysql.db WHERE Db='test' OR Db='test\_%';
1+
DELETE FROM mysql.user WHERE User = '';
2+
DROP DATABASE IF EXISTS test;
3+
DELETE FROM mysql.db WHERE Db = 'test' OR Db LIKE 'test\_%';
4+
DELETE FROM mysql.user WHERE User = 'root' AND Host LIKE 'runner%';
45
RENAME USER 'root'@'localhost' TO 'root'@'%';
56
FLUSH PRIVILEGES;
6-
DROP USER 'root'@'127.0.0.1';
7-
DROP USER 'root'@'::1';
8-
DROP USER 'root'@'localhost';
9-
DROP USER 'root'@'user-pc';
7+
DROP USER IF EXISTS 'root'@'127.0.0.1';
8+
DROP USER IF EXISTS 'root'@'::1';
9+
DROP USER IF EXISTS 'root'@'localhost';
10+
DROP USER IF EXISTS 'root'@'user-pc';
11+
FLUSH PRIVILEGES;

0 commit comments

Comments
 (0)