We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6541f87 commit 299b08fCopy full SHA for 299b08f
1 file changed
generate/setup/install.sql
@@ -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\_%';
+DELETE FROM mysql.user WHERE User = '';
+DROP DATABASE IF EXISTS test;
+DELETE FROM mysql.db WHERE Db = 'test' OR Db LIKE 'test\_%';
4
+DELETE FROM mysql.user WHERE User = 'root' AND Host LIKE 'runner%';
5
RENAME USER 'root'@'localhost' TO 'root'@'%';
6
FLUSH PRIVILEGES;
-DROP USER 'root'@'127.0.0.1';
7
-DROP USER 'root'@'::1';
8
-DROP USER 'root'@'localhost';
9
-DROP USER 'root'@'user-pc';
+DROP USER IF EXISTS 'root'@'127.0.0.1';
+DROP USER IF EXISTS 'root'@'::1';
+DROP USER IF EXISTS 'root'@'localhost';
10
+DROP USER IF EXISTS 'root'@'user-pc';
11
+FLUSH PRIVILEGES;
0 commit comments