Skip to content

Commit c1d91e8

Browse files
committed
fix: update MySQL user creation for MySQL 8.0+ compatibility
Signed-off-by: henribon <[email protected]>
1 parent 6feeae0 commit c1d91e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/resources/db/mysql/user.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ ALTER DATABASE petclinic
44
DEFAULT CHARACTER SET utf8
55
DEFAULT COLLATE utf8_general_ci;
66

7-
GRANT ALL PRIVILEGES ON petclinic.* TO 'petclinic'@'%' IDENTIFIED BY 'petclinic';
7+
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

Comments
 (0)