I am setting up a new Azure database using mysql server with a database. I want to dump a .sql file to this database using powershell
Executing the below code throws exception in '<', since it is reserved for future use, as a workaround I tired putting the entire statement in quotes.Still facing same issue.
$path = "C:\tools\mysql\current\bin\mysql.exe"
&"$path" -h $servername -u $username -p $databasename < filename.sql
The expected result is to dump the filename.sql into mysql server database.