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 来修复它,这是我最初尝试做的!