質問編集履歴
2
情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -79,3 +79,65 @@
|
|
79
79
|
ネットワークとサーバー構成(書籍より引用ただしwordPress部分にはJavaをinstall)
|
80
80
|
|
81
81
|
![イメージ説明](d997ba10f2cb159e700f3a67249e5b5b.jpeg)
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
#追記
|
88
|
+
|
89
|
+
url = jdbc:mysql://プライベートIPアドレス:port番号/DB名として再び実行したところ以下のエラーが発生
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
```error
|
94
|
+
|
95
|
+
Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'root'@'ip-10-0-1-10.ap-northeast-1.compute.internal' (using password: YES)
|
96
|
+
|
97
|
+
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82) ~[spring-jdbc-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]
|
98
|
+
|
99
|
+
at org.springframework.jdbc.datasource.init.DatabasePopulatorUtils.execute(DatabasePopulatorUtils.java:47) ~[spring-jdbc-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]
|
100
|
+
|
101
|
+
... 65 common frames omitted
|
102
|
+
|
103
|
+
Caused by: java.sql.SQLException: Access denied for user 'root'@'ip-10-0-1-10.ap-northeast-1.compute.internal' (using password: YES)
|
104
|
+
|
105
|
+
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) ~[mysql-connector-java-8.0.19.jar!/:8.0.19]
|
106
|
+
|
107
|
+
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) ~[mysql-connector-java-8.0.19.jar!/:8.0.19]
|
108
|
+
|
109
|
+
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) ~[mysql-connector-java-8.0.19.jar!/:8.0.19]
|
110
|
+
|
111
|
+
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:836) ~[mysql-connector-java-8.0.19.jar!/:8.0.19]
|
112
|
+
|
113
|
+
at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:456) ~[mysql-connector-java-8.0.19.jar!/:8.0.19]
|
114
|
+
|
115
|
+
at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246) ~[mysql-connector-java-8.0.19.jar!/:8.0.19]
|
116
|
+
|
117
|
+
at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:197) ~[mysql-connector-java-8.0.19.jar!/:8.0.19]
|
118
|
+
|
119
|
+
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) ~[HikariCP-3.4.2.jar!/:na]
|
120
|
+
|
121
|
+
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:354) ~[HikariCP-3.4.2.jar!/:na]
|
122
|
+
|
123
|
+
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202) ~[HikariCP-3.4.2.jar!/:na]
|
124
|
+
|
125
|
+
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:473) ~[HikariCP-3.4.2.jar!/:na]
|
126
|
+
|
127
|
+
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:554) ~[HikariCP-3.4.2.jar!/:na]
|
128
|
+
|
129
|
+
at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115) ~[HikariCP-3.4.2.jar!/:na]
|
130
|
+
|
131
|
+
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) ~[HikariCP-3.4.2.jar!/:na]
|
132
|
+
|
133
|
+
at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158) ~[spring-jdbc-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]
|
134
|
+
|
135
|
+
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116) ~[spring-jdbc-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]
|
136
|
+
|
137
|
+
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79) ~[spring-jdbc-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]
|
138
|
+
|
139
|
+
... 66 common frames omitted
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
```
|
1
情報の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -70,7 +70,7 @@
|
|
70
70
|
|
71
71
|
|
72
72
|
|
73
|
-
おそらくはurl部分
|
73
|
+
おそらくはurlのHOST名とport部分に変更が必要なのですがawsサーバー上で実行する場合のurlはどのように指定するべきなのでしょうか?
|
74
74
|
|
75
75
|
またdriverClassName=com.mysql.cj.jdbc.Driverという記述に関しては問題ないでしょうか?
|
76
76
|
|