Các lệnh cơ bản của MySQL P4
Written on 03/03/2010 – 10:12 | by hanh_bk |Load a CSV file into a table. mysql> LOAD DATA INFILE ‘/tmp/filename.csv’ replace INTO TABLE [table name] FIELDS TERMINATED BY ‘,’ LINES TERMINATED BY ‘\n’ (field1,field2,field3); Dump all databases for backup. Backup file is sql commands to recreate all db’s. # [mysql dir]/bin/mysqldump -u root -ppassword –opt >/tmp/alldatabases.sql Dump one database for backup. # [mysql [...]

