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 6feeae0 commit 2aa794bCopy full SHA for 2aa794b
src/main/resources/db/mysql/user.sql
@@ -4,4 +4,8 @@ ALTER DATABASE petclinic
4
DEFAULT CHARACTER SET utf8
5
DEFAULT COLLATE utf8_general_ci;
6
7
-GRANT ALL PRIVILEGES ON petclinic.* TO 'petclinic'@'%' IDENTIFIED BY 'petclinic';
+CREATE USER IF NOT EXISTS 'petclinic'@'%' IDENTIFIED BY 'petclinic';
8
+
9
+GRANT ALL PRIVILEGES ON petclinic.* TO 'petclinic'@'%';
10
11
+FLUSH PRIVILEGES;
0 commit comments