mysql, dump, database restore

后端 未结 3 389
终归单人心
终归单人心 2021-02-02 10:53

I have dumped my database with the following command:

mysqldump -uuser -ppassword db_name > file

then I completely removed my database:

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 11:06

    I like to do the following to restore.

    mysql -uuser -ppassword
    create database db;
    use db;
    source dump.sql;
    

提交回复
热议问题