質問編集履歴
6
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -60,5 +60,6 @@
|
|
60
60
|
}
|
61
61
|
|
62
62
|
```
|
63
|
+
PHPにつきましては、テーブルに接続し、該当するカラムを取得する処理に該当します
|
63
64
|
|
64
65
|
申し訳ございませんが、何卒宜しくお願い致します。
|
5
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -48,5 +48,17 @@
|
|
48
48
|
) ENGINE=InnoDB AUTO_INCREMENT=496 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
|
49
49
|
|
50
50
|
```
|
51
|
+
##PHP
|
51
52
|
|
53
|
+
```
|
54
|
+
ini_set('memory_limit', '512M');
|
55
|
+
ini_set('net_read_timeout', '360');
|
56
|
+
ini_set('net_write_timeout', '360');
|
57
|
+
$mysqlRDS = DB::connection('mysql');
|
58
|
+
foreach ((array)$mysqlRDS->table('rkeywords')->select('r_id','place','keyword','except','note')->get() as $keyword) {
|
59
|
+
|
60
|
+
}
|
61
|
+
|
62
|
+
```
|
63
|
+
|
52
64
|
申し訳ございませんが、何卒宜しくお願い致します。
|
4
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
###エラー文
|
8
8
|
```
|
9
9
|
[Illuminate\Database\QueryException]
|
10
|
-
Empty row packet body (SQL: select `
|
10
|
+
Empty row packet body (SQL: select `r_id`, `place`, `keyword`, `except`, `note` from `rkeywords` where `use` =
|
11
11
|
1)
|
12
12
|
|
13
13
|
|
@@ -26,4 +26,27 @@
|
|
26
26
|
をコードに追加したところ、エラー自体は発生しなくなりました。
|
27
27
|
しかし非常に処理が遅い状態にあります。
|
28
28
|
|
29
|
+
##テーブル定義
|
30
|
+
```
|
31
|
+
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
32
|
+
`r_id` bigint(20) unsigned NOT NULL,
|
33
|
+
`use` tinyint(4) NOT NULL,
|
34
|
+
`progmail` tinyint(4) DEFAULT '1',
|
35
|
+
`place` text COLLATE utf8_unicode_ci NOT NULL,
|
36
|
+
`keyword` text COLLATE utf8_unicode_ci NOT NULL,
|
37
|
+
`except` text COLLATE utf8_unicode_ci,
|
38
|
+
`note` text COLLATE utf8_unicode_ci,
|
39
|
+
`meta` longtext COLLATE utf8_unicode_ci,
|
40
|
+
`list_keyword` text COLLATE utf8_unicode_ci,
|
41
|
+
`list_ng` text COLLATE utf8_unicode_ci,
|
42
|
+
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
43
|
+
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
44
|
+
PRIMARY KEY (`id`),
|
45
|
+
UNIQUE KEY `rkeywords_resume_id_unique` (`r_id`),
|
46
|
+
KEY `place_use_id_index` (`place`(255),`use`,`id`),
|
47
|
+
CONSTRAINT `rkeywords_r_id_foreign` FOREIGN KEY (`r_id`) REFERENCES `rs` (`id`)
|
48
|
+
) ENGINE=InnoDB AUTO_INCREMENT=496 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
|
49
|
+
|
50
|
+
```
|
51
|
+
|
29
52
|
申し訳ございませんが、何卒宜しくお願い致します。
|
3
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -18,5 +18,12 @@
|
|
18
18
|
```
|
19
19
|
エラーが発生しているテーブルのエンジンは「InnoDB」です。
|
20
20
|
|
21
|
+
##追記
|
22
|
+
```
|
23
|
+
net_read_timeout = 360
|
24
|
+
net_write_timeout = 360
|
25
|
+
```
|
26
|
+
をコードに追加したところ、エラー自体は発生しなくなりました。
|
27
|
+
しかし非常に処理が遅い状態にあります。
|
21
28
|
|
22
29
|
申し訳ございませんが、何卒宜しくお願い致します。
|
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -16,6 +16,7 @@
|
|
16
16
|
Empty row packet body
|
17
17
|
|
18
18
|
```
|
19
|
+
エラーが発生しているテーブルのエンジンは「InnoDB」です。
|
19
20
|
|
20
21
|
|
21
22
|
申し訳ございませんが、何卒宜しくお願い致します。
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,6 +4,18 @@
|
|
4
4
|
AWSを使用しているのですが、パラメータを設定すれば回避できるものでしょうか?
|
5
5
|
また、どういった点を見れば修正などの糸口がつかめますでしょうか?
|
6
6
|
|
7
|
+
###エラー文
|
8
|
+
```
|
7
|
-
|
9
|
+
[Illuminate\Database\QueryException]
|
10
|
+
Empty row packet body (SQL: select `resume_id`, `place`, `keyword`, `except`, `note` from `rkeywords` where `use` =
|
11
|
+
1)
|
8
12
|
|
13
|
+
|
14
|
+
|
15
|
+
[ErrorException]
|
16
|
+
Empty row packet body
|
17
|
+
|
18
|
+
```
|
19
|
+
|
20
|
+
|
9
21
|
申し訳ございませんが、何卒宜しくお願い致します。
|