How to import a single table in to mysql database using command line

前端 未结 18 1954
你的背包
你的背包 2020-12-22 15:25

I had successfully imported a database using command line, but now my pain area is how to import a single table with its data to the existing database using command line.

18条回答
  •  半阙折子戏
    2020-12-22 15:59

    • It would be combination of EXPORT INTO OUTFILE and LOAD DATA INFILE

    • You need to export that single table with EXPORT INTO OUTFILE, this will export table data to a file. You can import that particular table using LOAD DATA INFILE

    • Refer doc1 , doc2

提交回复
热议问题