Mysql '<';操作员被保留为PowerShell错误
我试图在PowerShell中使用Mysql '<';操作员被保留为PowerShell错误,mysql,powershell,Mysql,Powershell,我试图在PowerShell中使用mysql-u root-p教程
mysql-u root-p教程
来还原mysql数据库中的表,但它给了我一个“怎么样
& cmd.exe /c "mysql -u root -p Tutorials < tut_backup.sql"
&cmd.exe/c“mysql-u root-p教程
试试这个:
mysql -u root -p
(prompts for password)
source tut_backup.sql
归功于。您可以像这样插入内容:
Get-Content tut_backup.sql | mysql -u root -p Tutorials
可能是“这救了我”的复制品。因为这个答案帮了我好几次忙,所以我就不发表评论了。