Restore MYSQL Dump File with Command Line

前端 未结 9 1466
长情又很酷
长情又很酷 2021-02-04 02:57

I have file.sql, and I want to restore it. I found this command:

mysql -u username -p database_name < file.sql

Where should I put \'file.sql\' in

9条回答
  •  春和景丽
    2021-02-04 03:30

    Import Database
    1. Go to drive
    command: d:
    2. Mysql login
    command: c:\xampp\mysql\bin\mysql -u root -p
    3. Will ask for pwd: enter it
    pwd
    4. Select db
    use DbName;
    5. Provide file name
    \. G:DbName.sql
    

提交回复
热议问题