Skip to content

Commit e5e6027

Browse files
updated run params for prod db
1 parent e99cb28 commit e5e6027

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

utils/mysql-docker-cmd.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,18 @@ mysql -p
2525
#create database
2626
CREATE DATABASE springguru
2727

28-
grant all privileges on springguru.* to 'spring_guru_owner'@'localhost' identified by "GuruPassword";
28+
grant all privileges on springguru.* to 'spring_guru_owner'@'localhost' identified by "GuruPassword";
29+
30+
31+
#Bash env
32+
export SPRING_DATASOURCE_URL=jdbc:mysql://52.91.138.232:3306/springguru
33+
export SPRING_DATASOURCE_USERNAME=spring_guru_owner
34+
export SPRING_DATASOURCE_PASSWORD="GuruPassword"
35+
36+
#User update
37+
DROP USER 'spring_guru_owner'@'localhost';
38+
grant all privileges on springguru.* to 'spring_guru_owner'@'%' identified by "GuruPassword";
39+
FLUSH PRIVILEGES;
40+
41+
#run command
42+
java -jar ./spring-core-devops-0.0.1.jar --spring.jpa.hibernate.ddl-auto=update

0 commit comments

Comments
 (0)