How do I load a sql.gz file to my database? (importing)

后端 未结 7 1145
-上瘾入骨i
-上瘾入骨i 2021-02-05 01:34

is this right?

mysql -uroot -ppassword mydb < myfile.sql.gz
7条回答
  •  伪装坚强ぢ
    2021-02-05 02:37

    You have to follow below steps:

    • First check Mysql service should be running.

    • Then if you have compressed file, decompress it first.

    • Then you will find .sql file after decompressing.
    • Then find import data in left corner in Mysql.
    • Select option import from self-contained file and select your .sql file and specify a new schema name.
    • Then click on import data.
    • After importing you will see your new schema in available schema list.

提交回复
热议问题