mysql import on windows

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

    I found out it is different to run this command from Windows Command Line (cmd.exe) and Windows PowerShell.

    Using CMD.exe the command works okay, but in PowerShell I get this error:

    mysql -uroot exampledb < exampledb.sql
    

    The '<' operator is reserved for future use.

提交回复
热议问题