keepingbusy
Programmer
Hi
I am trying to upload a large csv file ( >2mb ) into a table within a database. I cannot use phpmyadmin because the csv file is too large.
I have a copy of SSH and can access our database via this (I think!)
Searching on Google I found Loading Data into MySQL from a Text File example:
Ok, I understand that (sort of) but how do you get it to firstly recognise the correct database on our server as we have many?
I'm not sure I am going down the right path here but basically I just want to be able to access a database, upload several large csv files to update our website content.
Some guidance not the sollution would be appreciated.
Thank you
I am trying to upload a large csv file ( >2mb ) into a table within a database. I cannot use phpmyadmin because the csv file is too large.
I have a copy of SSH and can access our database via this (I think!)
Searching on Google I found Loading Data into MySQL from a Text File example:
Code:
mysql>LOAD DATA LOCAL INFILE 'd:\\employees.tab'
->INTO TABLE employee
->FIELDS TERMINATED BY "\t"
->LINES TERMINATED BY "\n"
->(employee_lname, employee_fname, employee_ssn,
->employee_phone, employee_email);
I'm not sure I am going down the right path here but basically I just want to be able to access a database, upload several large csv files to update our website content.
Some guidance not the sollution would be appreciated.
Thank you