I'm stuck trying to move one table to another, due to columns now no longer having proper references/meaning to their column titles. In doing this, I've created a new table with the same number of columns as the original, simply with the column names changed to better reflect the data coming in.
My problem is, the data is over 50 million rows, so I'm unable to simply alter the columns in place, so I've made a new table that I wish to use moving forward anyway. I've made the necessary column changes, but now when I try to load the data in, it looks like the process is simply stick.
+-----+------+-----------+------+---------+------+-------+----------------------------------
--------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
+-----+------+-----------+------+---------+------+-------+------------------------------------------------------------------------------------------------------+
| 481 | root | localhost | database | Query | 8617 | NULL | LOAD DATA LOCAL INFILE '/home/SQLBackUps/file.csv' INTO TABLE `tablename` FIELDS |
| 483 | root | localhost | database | Sleep | 7174 | | NULL |
| 485 | root | localhost | database | Query | 0 | NULL | show processlist |
+-----+------+-----------+------+---------+------+-------+------------------------------------------------------------------------------------------------------+
I ran the talk using mysqlimport with the necessary flags, so it should in theory at least be running, but as the state says null, I'm not sure what that really means as NULL, according to the documentation, only appears for show processlist. The file's permissions are as follows:
-rw-rw-rw- 1 mysql mysql 14141022004 May 15 16:42 file.csv
The file was created using SELECT INTO OUTFILE ...
Is there anything I can do to speed up this process? Right now it's on a very limited Dev machine with 2GB of RAM and an okay processor, so I understand it will take a bit of time, but given it's been over 2 hours and it's still in a null state, I'm stuck wondering if something is wrong, or if there is anything I can do to speed this process up.
Are there other ways to import the data quickly? Are there any flags I can use to speed this process up? Any, and all help is appreciated.
Update:
I started the process again in the very early morning, and have let it run for about 7 and a half hours now, and the process list looks as follows:
mysql> show processlist;
+----+------+-----------+------+---------+-------+-------+------------------------------------------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+------+-----------+------+---------+-------+-------+------------------------------------------------------------------------------------------------------+
| 9 | root | localhost | db | Query | 22978 | NULL | LOAD DATA INFILE '/home/SQLBackUps/file.csv' INTO TABLE table FIELDS TERMINATED |
| 15 | root | localhost | db | Query | 0 | NULL | show processlist |
+----+------+-----------+------+---------+-------+-------+------------------------------------------------------------------------------------------------------+