MySQL select into outfile,选择数据量(文件大小限制)
我从 400M-1G 表中选择大量数据(~ 10-100 MB),我使用查询:
select log from messages_010110 where [cond] into outfile '/tmp/log.txt'
问题是 - /tmp/log.txt
文件大小每次都是 14134375 bytes == 15Mb
所以我认为 select 语句有一些限制,我需要覆盖它选择大量数据。什么变量控制这个限制/如何将其设置得更大?
I am selecting huge amounts of data (~ 10-100 mbytes) from 400M-1G tables, I am using query:
select log from logs_010110 where [cond] into outfile '/tmp/log.txt'
the problem is - /tmp/log.txt
file size EVERY time is 14134375 bytes == 15Mb
so I think there is some limit for select statement which I need to override to select big amounts of data. What variable controls this limit/how can I set it bigger?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要增加 buffer_pool_size mysql 参数!
You need to increase buffer_pool_size mysql param!