mysql import on windows

前端 未结 6 586
梦毁少年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:15

    Not sure if your example was a typo or not, but for starters you need to have a space in between your flags and their values, roughly like this:

    mysql -u root -p [password] db < db.sql
    

提交回复
热议问题