Import and Export Mysql Data
Simple Data Export
- To export data from table to text file using command line we use the this query
mysql> SELECT * FROM user INTO OUTFILE 'c:/mysqldb/user'; Query OK, 3 rows affected (0.00 sec)
mysql>DELETE FROM user; Query OK, 3 rows affected (0.13 sec) mysql>LOAD DATA INFILE 'c:/mysqldb/user' INTO TABLE tkhts.user; Query OK, 3 rows affected (0.13 sec) Records:3 Deleted:0 Skipped:0 Warning:0![]()


