Hi, I want to create a script that will convert a large text file from .csv to MySQL database. It has 4,000,000 strings. Is it possible to do this by running the script on shared hosting? What should I ask my provider for (resources, cpu time, ...) ? Thanks, Fred
Yes you can convert it into mysql but if you have less space in your hosting panel, than you have to increase the space otherwise it may get hanged during conversion.
Good idea would be to split it up into smaller chunks, you could do this on your local machine and then get the smaller files up there. Of course - if you need regular updates for full DB this could turn out a big headache. Anyways, best way - read a line at a time and don't store it in memory, read, insert/update, move to next line.