Tampilkan postingan dengan label phpmyadmin. Tampilkan semua postingan
Tampilkan postingan dengan label phpmyadmin. Tampilkan semua postingan

Senin, September 26, 2011

phpMyAdmin : How to Import Large CSV

Case : You have a big file size csv to import to mysql using phpmyadmin
Solution : Use mysql script instead of import form from phpmyadmin (that will save you a lot of time)
Script :
LOAD DATA LOCAL INFILE 'file_name.csv'
INTO TABLE table_name
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'
(column1,column2,column3);


Note : place your csv file in your phpmyadmin directory

Source : http://www.phpfreaks.com/forums/index.php?topic=343906.0

Kamis, Juli 01, 2010

MySQL : Merge two tables

using phpMyAdmin :

  1. select database
  2. create new table (note that the new table should have the same structure as the table that we want to merge)
  3. go to the SQL menu and type in the sql box :

    INSERT IGNORE
    INTO table_1
    SELECT *
    FROM table_2
    ;
















    doh !