質問編集履歴
5
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,9 +12,9 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
|
15
|
+
エラー内容
|
16
16
|
|
17
|
-
java.lang.IllegalStateException: Access denied for user 'root'@'localhost' (using password: YES)
|
17
|
+
java.lang.IllegalStateException: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
|
18
18
|
|
19
19
|
|
20
20
|
|
4
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
IllegalStateException(e)を拾ってしまいます。
|
16
16
|
|
17
|
-
java.lang.IllegalStateException: co
|
17
|
+
java.lang.IllegalStateException: Access denied for user 'root'@'localhost' (using password: YES)
|
18
18
|
|
19
19
|
|
20
20
|
|
3
更新
test
CHANGED
File without changes
|
test
CHANGED
@@ -13,6 +13,8 @@
|
|
13
13
|
|
14
14
|
|
15
15
|
IllegalStateException(e)を拾ってしまいます。
|
16
|
+
|
17
|
+
java.lang.IllegalStateException: com.mysql.jdbc.Driver
|
16
18
|
|
17
19
|
|
18
20
|
|
2
コードを更新
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
### 該当のソースコード
|
20
20
|
|
21
|
-
|
21
|
+
```ここに言語を入力
|
22
22
|
|
23
23
|
import java.sql.Connection;
|
24
24
|
|
@@ -108,6 +108,10 @@
|
|
108
108
|
|
109
109
|
|
110
110
|
|
111
|
+
```
|
112
|
+
|
113
|
+
|
114
|
+
|
111
115
|
### 試したこと
|
112
116
|
|
113
117
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
private static String RDB_DRIVE = "com.mysql.jdbc.Driver";
|
40
40
|
|
41
|
-
private static String URL = "jdbc:mysql://localhost/
|
41
|
+
private static String URL = "jdbc:mysql://localhost/testdb";
|
42
42
|
|
43
43
|
private static String USER = "root";
|
44
44
|
|