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

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

    you can do it in mysql command instead of linux command.
    1.login your mysql.
    2.excute this in mysql command:
    use DATABASE_NAME;
    SET autocommit=0 ; source ABSOLUTE_PATH/TABLE_SQL_FILE.sql ; COMMIT ;

提交回复
热议问题