mysql import on windows

前端 未结 6 582
梦毁少年i
梦毁少年i 2021-01-31 09:49

I have a MySQL file, db.sql. I have tried to import it using:

mysql -uroot -p[password] db < db.sql

All I get is a listing of m

6条回答
  •  时光说笑
    2021-01-31 10:16

    Try this instead:

    mysql -u root -p
    (prompts for password)
    use db;
    source db.sql
    

提交回复
热议问题