我需要转储Microsoft Azure上托管的数据库。
我尝试了以下操作:
1.使用MySQL Workbench连接到数据库。
2.选择数据导出并使用它。警告消息显示“显示了不相同的mysqldump版本(8.0.12)和MySQL服务器版本(5.7.21)可能导致问题”。
3. MySQL Community Installer没有可用的升级。
那么问题在哪里:
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
答案 0 :(得分:0)
Hei Jesper, 我想您将Azure数据库用于MySQL服务器。我也使用它,但是我遇到了同样的问题。 我为解决该问题所做的步骤:
卸载工作台并安装最新版本8.0.12
记住要在以下路径中定义较长的Mysql会话超时:edit \ preferences \ SQLEditor