質問編集履歴
6
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -122,6 +122,8 @@
|
|
122
122
|
|
123
123
|
```
|
124
124
|
|
125
|
+
PHPにつきましては、テーブルに接続し、該当するカラムを取得する処理に該当します
|
126
|
+
|
125
127
|
|
126
128
|
|
127
129
|
申し訳ございませんが、何卒宜しくお願い致します。
|
5
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -98,6 +98,30 @@
|
|
98
98
|
|
99
99
|
```
|
100
100
|
|
101
|
+
##PHP
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
```
|
106
|
+
|
107
|
+
ini_set('memory_limit', '512M');
|
108
|
+
|
109
|
+
ini_set('net_read_timeout', '360');
|
110
|
+
|
111
|
+
ini_set('net_write_timeout', '360');
|
112
|
+
|
113
|
+
$mysqlRDS = DB::connection('mysql');
|
114
|
+
|
115
|
+
foreach ((array)$mysqlRDS->table('rkeywords')->select('r_id','place','keyword','except','note')->get() as $keyword) {
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
```
|
124
|
+
|
101
125
|
|
102
126
|
|
103
127
|
申し訳ございませんが、何卒宜しくお願い致します。
|
4
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
[Illuminate\Database\QueryException]
|
18
18
|
|
19
|
-
Empty row packet body (SQL: select `r
|
19
|
+
Empty row packet body (SQL: select `r_id`, `place`, `keyword`, `except`, `note` from `rkeywords` where `use` =
|
20
20
|
|
21
21
|
1)
|
22
22
|
|
@@ -54,4 +54,50 @@
|
|
54
54
|
|
55
55
|
|
56
56
|
|
57
|
+
##テーブル定義
|
58
|
+
|
59
|
+
```
|
60
|
+
|
61
|
+
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
62
|
+
|
63
|
+
`r_id` bigint(20) unsigned NOT NULL,
|
64
|
+
|
65
|
+
`use` tinyint(4) NOT NULL,
|
66
|
+
|
67
|
+
`progmail` tinyint(4) DEFAULT '1',
|
68
|
+
|
69
|
+
`place` text COLLATE utf8_unicode_ci NOT NULL,
|
70
|
+
|
71
|
+
`keyword` text COLLATE utf8_unicode_ci NOT NULL,
|
72
|
+
|
73
|
+
`except` text COLLATE utf8_unicode_ci,
|
74
|
+
|
75
|
+
`note` text COLLATE utf8_unicode_ci,
|
76
|
+
|
77
|
+
`meta` longtext COLLATE utf8_unicode_ci,
|
78
|
+
|
79
|
+
`list_keyword` text COLLATE utf8_unicode_ci,
|
80
|
+
|
81
|
+
`list_ng` text COLLATE utf8_unicode_ci,
|
82
|
+
|
83
|
+
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
84
|
+
|
85
|
+
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
86
|
+
|
87
|
+
PRIMARY KEY (`id`),
|
88
|
+
|
89
|
+
UNIQUE KEY `rkeywords_resume_id_unique` (`r_id`),
|
90
|
+
|
91
|
+
KEY `place_use_id_index` (`place`(255),`use`,`id`),
|
92
|
+
|
93
|
+
CONSTRAINT `rkeywords_r_id_foreign` FOREIGN KEY (`r_id`) REFERENCES `rs` (`id`)
|
94
|
+
|
95
|
+
) ENGINE=InnoDB AUTO_INCREMENT=496 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
```
|
100
|
+
|
101
|
+
|
102
|
+
|
57
103
|
申し訳ございませんが、何卒宜しくお願い致します。
|
3
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,6 +38,20 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
+
##追記
|
42
|
+
|
43
|
+
```
|
44
|
+
|
45
|
+
net_read_timeout = 360
|
46
|
+
|
47
|
+
net_write_timeout = 360
|
48
|
+
|
49
|
+
```
|
50
|
+
|
51
|
+
をコードに追加したところ、エラー自体は発生しなくなりました。
|
52
|
+
|
53
|
+
しかし非常に処理が遅い状態にあります。
|
54
|
+
|
41
55
|
|
42
56
|
|
43
57
|
申し訳ございませんが、何卒宜しくお願い致します。
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,6 +34,8 @@
|
|
34
34
|
|
35
35
|
```
|
36
36
|
|
37
|
+
エラーが発生しているテーブルのエンジンは「InnoDB」です。
|
38
|
+
|
37
39
|
|
38
40
|
|
39
41
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,31 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
+
###エラー文
|
14
|
+
|
15
|
+
```
|
16
|
+
|
13
|
-
|
17
|
+
[Illuminate\Database\QueryException]
|
18
|
+
|
19
|
+
Empty row packet body (SQL: select `resume_id`, `place`, `keyword`, `except`, `note` from `rkeywords` where `use` =
|
20
|
+
|
21
|
+
1)
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
[ErrorException]
|
30
|
+
|
31
|
+
Empty row packet body
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
```
|
36
|
+
|
37
|
+
|
14
38
|
|
15
39
|
|
16
40
|
|