質問編集履歴
4
加筆
title
CHANGED
File without changes
|
body
CHANGED
@@ -45,5 +45,45 @@
|
|
45
45
|
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
|
46
46
|
|
47
47
|
|
48
|
+
|
48
49
|
この場合の解決方法を教えていただけると幸いです…
|
49
|
-
よろしくお願いいたします。
|
50
|
+
よろしくお願いいたします。
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
【追記2】
|
56
|
+
使用しているOS:Windows 7 Professional
|
57
|
+
|
58
|
+
(my.defaylt.iniファイルの内容)
|
59
|
+
# For advice on how to change settings please see
|
60
|
+
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
|
61
|
+
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
|
62
|
+
# *** default location during install, and will be replaced if you
|
63
|
+
# *** upgrade to a newer version of MySQL.
|
64
|
+
|
65
|
+
[mysqld]
|
66
|
+
|
67
|
+
# Remove leading # and set to the amount of RAM for the most important data
|
68
|
+
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
|
69
|
+
# innodb_buffer_pool_size = 128M
|
70
|
+
|
71
|
+
# Remove leading # to turn on a very important data integrity option: logging
|
72
|
+
# changes to the binary log between backups.
|
73
|
+
# log_bin
|
74
|
+
|
75
|
+
# These are commonly set, remove the # and set as required.
|
76
|
+
# basedir = .....
|
77
|
+
# datadir = .....
|
78
|
+
# port = .....
|
79
|
+
# server_id = .....
|
80
|
+
|
81
|
+
|
82
|
+
# Remove leading # to set options mainly useful for reporting servers.
|
83
|
+
# The server defaults are faster for transactions and fast SELECTs.
|
84
|
+
# Adjust sizes as needed, experiment to find the optimal values.
|
85
|
+
# join_buffer_size = 128M
|
86
|
+
# sort_buffer_size = 2M
|
87
|
+
# read_rnd_buffer_size = 2M
|
88
|
+
|
89
|
+
#sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
|
3
追記の加筆
title
CHANGED
File without changes
|
body
CHANGED
@@ -30,4 +30,20 @@
|
|
30
30
|
eclipse4.4
|
31
31
|
MySQL5.7
|
32
32
|
tomcat8.0
|
33
|
-
mysql-connector-java-5.1.8-bin
|
33
|
+
mysql-connector-java-5.1.8-bin
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
【追記】
|
38
|
+
http://web.sfc.wide.ad.jp/~tinaba/tutorials/mysql-j/
|
39
|
+
|
40
|
+
教えていただいた上記のURLを参考に作業をおこなったところ以下のエラーメッセージが出ました。
|
41
|
+
|
42
|
+
|
43
|
+
データベース接続エラーcom.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
|
44
|
+
|
45
|
+
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
|
46
|
+
|
47
|
+
|
48
|
+
この場合の解決方法を教えていただけると幸いです…
|
49
|
+
よろしくお願いいたします。
|
2
誤字の修正
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
1
状況説明の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,9 +1,28 @@
|
|
1
1
|
プログラミング初心者です。
|
2
|
+
質問内容を修正させていただきました。
|
2
3
|
|
3
4
|
eclipseにてMySQLとの接続を試みているのですが、テスト接続の際に「Pingが失敗しました」というエラーメッセージが出てきてしまい上手くいきません。
|
4
5
|
|
5
6
|
|
7
|
+
以下は状況説明です。
|
6
8
|
|
9
|
+
まず、データ・ソース・エクスプローラーから新規接続プロファイルを開き、「MySQL」を選択しました。
|
10
|
+
|
11
|
+
次に「新規ドライバー定義」を選択し、「名前/タイプ」タブの「使用可能なドライバー・テンプレート」からMySQL JDBCドライバーの5.1を選択しました。
|
12
|
+
また、その際に「Jarリスト」タブにてmysql-connector-java-5.1.8-binを追加いたしました。
|
13
|
+
|
14
|
+
最後に、ドライバーおよび接続の詳細の指定の一般タブにて下記のように記載しました。
|
15
|
+
|
16
|
+
データベース:database
|
17
|
+
URL:jdbc:mysql://localhost:3306/database
|
18
|
+
ユーザー名:root
|
19
|
+
パスワード:未記入
|
20
|
+
|
21
|
+
この段階で接続テストを実行したところ、「Pingが失敗しました」とだけ記載されたエラーメッセージが表示されました。
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
7
26
|
未熟故文章や状況説明等甘い部分があり申し訳ないのですが何卒お力添えいただきますよう、心よりお願いいたします。
|
8
27
|
|
9
28
|
|