我需要转储 Microsoft Azure 上托管的数据库。
我尝试了以下操作:
1. 使用 MySQL Workbench 连接到 db。
2. 选择数据导出并使用它。警告消息显示“mysqldump(8.0.12) 的不等版本和要转储的 MySQL 服务器(5.7.21) 可能会导致问题”。
3. MySQL 社区安装程序没有可用的升级。
那么问题出在哪里:
1.如何获取所需版本的mysqldump?
2. mysqldump 版本似乎比需要的高,但它仍然无法正常工作。为什么?
所有尝试都有以下日志:
18:59:01 Dumping schedule-system (all tables)
Running: "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqldump.exe" --defaults-file="c:\users\myrce\appdata\local\temp\tmp2jqnwp.cnf" --user=jesper@omsu-projects --host=omsu-projects.mysql.database.azure.com --protocol=tcp --port=3306 --default-character-set=utf8 --skip-triggers "schedule-system"
mysqldump: Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"') FROM information_schema.COLUMN_STATISTICS WHERE SCHEMA_NAME = 'schedule-system' AND TABLE_NAME = 'classroom';': Unknown table 'column_statistics' in information_schema (1109)
Operation failed with exitcode 2
18:59:06 Dumping recruiting-server (all tables)
Running: "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqldump.exe" --defaults-file="c:\users\myrce\appdata\local\temp\tmpobvhuq.cnf" --user=jesper@omsu-projects --host=omsu-projects.mysql.database.azure.com --protocol=tcp --port=3306 --default-character-set=utf8 --skip-triggers "recruiting-server"
mysqldump: Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"') FROM information_schema.COLUMN_STATISTICS WHERE SCHEMA_NAME = 'recruiting-server' AND TABLE_NAME = 'companies';': Unknown table 'column_statistics' in information_schema (1109)
Operation failed with exitcode 2
18:59:10 Export of C:\Users\myrce\Desktop\data.sql has finished with 2 errors