[英]How would I transfer a large amount of data to a MySQL server in one value?
I am making a PHP script which uploads a very large amount of data to a MySQL server. 我正在制作一个PHP脚本,该脚本将大量数据上传到MySQL服务器。 I do not have administrator rights for the MySQL server, so I can not change the maximum packet size, but I want to be able to transfer at least one Gigabyte of data to a single value on the server.
我没有MySQL服务器的管理员权限,因此无法更改最大数据包大小,但是我希望能够将至少1 GB的数据传输到服务器上的单个值。
Because I am limited to the packet size max of the MySQL server, I am unable to transfer a large amount of data. 由于受限于MySQL服务器的最大数据包大小,因此我无法传输大量数据。 Is there some keyword in MySQL for adding onto a value?
MySQL中是否有一些关键字可以添加到值上? If so, I could transfer the data in segments of the maximum amount of data the packets could be.
如果是这样,我可以将数据包分成几部分,以最大数量的数据段进行传输。
I have not found anything like this so far. 到目前为止,我还没有找到任何类似的东西。
Is there some strategy I could use to store large (1 GB or more) amounts of data in a single MySQL value? 我可以使用某种策略在单个MySQL值中存储大量(1 GB或更多)数据吗? Thanks!
谢谢!
You could use the concat mysql method and UPDATE the data 您可以使用concat mysql方法并更新数据
UPDATE `table` SET `table`.`data` = concat(`table`.`data`, '$input')
WHERE `table`.`id` = $id;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.