File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -25,4 +25,18 @@ mysql -p
25
25
#create database
26
26
CREATE DATABASE springguru
27
27
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
You can’t perform that action at this time.
0 commit comments