I am trying to use mysql -u root -p Tutorials < tut_backup.sql
in PowerShell to restore a table in a MySQL DB but it's giving me The '<' operator is reserved for future use.
error. Is there a roundabout way?
How about
& cmd.exe /c "mysql -u root -p Tutorials < tut_backup.sql"
You can pipe in the contents like so:
Get-Content tut_backup.sql | mysql -u root -p Tutorials
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With