duanhan9334 2013-03-30 21:17
浏览 63
已采纳

如何将一个值中的大量数据传输到MySQL服务器?

I am making a PHP script which uploads a very large amount of data to a MySQL server. 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.

Because I am limited to the packet size max of the MySQL server, I am unable to transfer a large amount of data. Is there some keyword in MySQL for adding onto a value? 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? Thanks!

  • 写回答

1条回答 默认 最新

  • doufen3786 2013-03-30 21:22
    关注

    You could use the concat mysql method and UPDATE the data

    UPDATE `table` SET `table`.`data` = concat(`table`.`data`, '$input') 
      WHERE `table`.`id` = $id;
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 gg加速器加速游戏时,提示不是x86架构
  • ¥15 python按要求编写程序
  • ¥15 Python输入字符串转化为列表排序具体见图,严格按照输入
  • ¥20 XP系统在重新启动后进不去桌面,一直黑屏。
  • ¥15 opencv图像处理,需要四个处理结果图
  • ¥15 无线移动边缘计算系统中的系统模型
  • ¥15 深度学习中的画图问题
  • ¥15 java报错:使用mybatis plus查询一个只返回一条数据的sql,却报错返回了1000多条
  • ¥15 Python报错怎么解决
  • ¥15 simulink如何调用DLL文件