将非常大的文本文件加载到我的sql表中
我有一个 6.2 GB 的非常大的文本文件。我已使用以下命令将其加载到 mysql 中的表中 加载数据本地infile'sample.txt' 进入以 ',' 结尾的表 table1 字段
(大约花了20分钟)但是转储不成功,数据不可读且没有意义。我有一个类似的文件,但 csv 格式的文件较小,并且可以成功地将其加载到 sql 表中。我无法打开大文本文件,如何在不打开的情况下将文本转换为 csv?或者任何人都可以分享成功将文本文件加载到 mysql 表的想法
I have a very large text file of 6.2 GB. I have loaded this to a table in mysql usingload data local infile 'sample.txt'
(It took about 20 mins)But the dump was not successful and the data is not readable and not meaningful. I had a similar file but of smaller size in csv format and could successfully load that into sql table. I am unable to open the large text file, How should I convert the text to csv without opening it? or Can anyone share an idea to successfully load the text file to mysql table
into table table1 fields terminated by ','
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论