file-import

PhpMyAdmin data import performance issues

狂风中的少年 提交于 2019-12-30 12:55:08
问题 Originally, my question was related to the fact that PhpMyAdmin's SQL section wasn't working properly. As suggested in the comments, I realized that it was the amount of the input is impossible to handle. However, this didn't provide me with a valid solution of how to deal with the files that have (in my case - 35 thousand record lines) in format of (CSV): ... 20120509,126,1590.6,0 20120509,127,1590.7,1 20120509,129,1590.7,6 ... The Import option in PhpMyadmin is struggling just as the basic

Python - Correctly format HTTP post with delimiter [duplicate]

被刻印的时光 ゝ 提交于 2019-12-11 18:37:37
问题 This question already has an answer here : Python - HTTP post from stdin [closed] (1 answer) Closed 5 years ago . I have a python script accepting the output of a bash command 'ibeacon_scan'. I am getting this error when running the script. Traceback (most recent call last): file "./stdin.py", line 12, in <module> conn.request("POST", "post.php", params, headers) NameError: name 'params is not defined Here is the code for python #!/usr/bin/python import fileinput import httplib import urllib

PhpMyAdmin data import performance issues

好久不见. 提交于 2019-12-01 12:33:56
Originally, my question was related to the fact that PhpMyAdmin's SQL section wasn't working properly. As suggested in the comments, I realized that it was the amount of the input is impossible to handle. However, this didn't provide me with a valid solution of how to deal with the files that have (in my case - 35 thousand record lines) in format of (CSV): ... 20120509,126,1590.6,0 20120509,127,1590.7,1 20120509,129,1590.7,6 ... The Import option in PhpMyadmin is struggling just as the basic copy-paste input in SQL section does. This time, same as previously, it takes 5 minutes until the max