从转储文件将MySQL数据库还原到Azure MySQL

问题描述 投票:0回答:1

将MySql数据库还原到Azure MySQL。

mysql -h xxx.mysql.database.azure.com -u admin@xxx -p db1 < c:\xxx.dump

抛出错误:

ERROR: ASCII '\0' appeared in the statement, but this is not allowed unless option --binary-mode is enabled and mysql is run in non-interactive mode. 
Set --binary-mode to 1 if ASCII '\0' is expected. Query: ''.

还原到本地MySql后,它可以正常工作。

任何线索?

mysql azure mysql-error-1064 azuremysql
1个回答
0
投票

您可以使用Azure CLI command来做到这一点,

© www.soinside.com 2019 - 2024. All rights reserved.