Restoring a MySQL table back to the database

后端 未结 4 924
栀梦
栀梦 2021-02-04 01:36

I have a trouble in restoring MySQL table back to the database from command line. Taking backup of a table is working with mysqldump.Taking backup and restoring of a database i

4条回答
  •  执笔经年
    2021-02-04 01:45

    Best way to restore your database:

    open cmd at bin folder

    login to mysql:

    mysql -uroot -pyour_password
    
    show databases;
    
    use db_name;
    

    now hit source and put the complete path from address bar where your sql file is stored and hit ;

    for example :

    source db_name.sql;
    

提交回复
热议问题