Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
データベースの長いテキスト列にコンテンツを挿入する必要があるファイルがあります。
INSERT into mail_queue(body) VALUES (LOAD_FILE('/tmp/.txtt3ucEx'))
私がお返しするのは、
#1048 - Column 'body' cannot be null
はい、私はmax_packet_sizeこれに対応する以上のものを増やしました。
max_packet_size
で始まるファイル名が判明します。MySQL がファイルを正しく読み取れないようにします。
そもそも私がやろうとしていたファイル名 /tmp/t3ucEx.txt を作成することで修正しました!