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

前端 未结 18 1920
你的背包
你的背包 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:48

    All of these options are fine, if you have the option to re-export the data.

    But if you need to use an existing SQL file, and use a specific table from it, then this perl script in the TimeSheet blog, with enable you to extract the table to a separate SQL file, and then import it.

    The original link is dead, so it is a good thing that someone has put it instead of the author, Jared Cheney, on GitHub, in this link.

提交回复
热议问题