MySQL 安装程序更新修改 mysqldump 调用

标签 mysql installation backup

我正在尝试使用 MySQL 社区安装程序将我的 MySQL Server 5.6 更新到最新版本 5.6.43。但它失败了。

在“应用配置”上有这个(新的?)步骤“备份 MySQL 数据库”,由于缺少底层 mysqldump 调用的选项,它总是失败。它需要添加 --max_allowed_pa​​cket=512M 选项才能工作。

如何修改调用或如何跳过完整的备份步骤?

Beginning configuration step: Backing up MySQL database Starting MySQL Server in order to run the mysql_upgrade tool. Warning: There may be some errors thrown by MySQL Server, the mysql_upgrade tool is going to be run next to attempt to fix database incompatibilities. Starting process for MySQL Server 5.6.43... Starting process with command: C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.6\my.ini" --console... Process for mysqld, with ID 6280, has been started successfully and is running. Successfully started process for MySQL Server 5.6.43. 2019-01-22 09:24:07 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2019-01-22 09:24:07 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 2019-01-22 09:24:07 0 [Note] C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe (mysqld 5.6.43) starting as process 6280 ... Running mysqldump tool to backup the database... Backup files will be dumped to "C:\ProgramData\MySQL\MySQL Server 5.6\Backup\mysql_dump-2019-01-22T09.24.11.sql".

Starting process with command: C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqldump.exe --defaults-extra-file="C:\Users\Master\AppData\Local\Temp\404a41e4-6738-40af-b26d-cd2a3981776d.ini" --user=root --host=localhost --port=3306 --default-character-set=utf8 --routines --events --single-transaction=TRUE --all-databases --result-file="C:\ProgramData\MySQL\MySQL Server 5.6\Backup\mysql_dump-2019-01-22T09.24.11.sql"... mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table table_test_attach_data at row: 291 Process for mysqldump, with ID 5492, was run successfully and exited with code 3. Ended configuration step: Backing up MySQL database

最佳答案

正如我自己发现的那样,您可以在安装程序中后退一步并取消选中备份步骤。

因此,如果不冒在更新过程中出错时丢失所有内容的风险,则需要进行手动备份。

关于MySQL 安装程序更新修改 mysqldump 调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54304787/

相关文章:

windows - 最新的 Xemacs for Windows 二进制文件下载

linux - 如何更改备份在 Ubuntu 16.04 中创建备份的时间?

batch-file - 在 Windows Server 上备份事件日志的简单方法

linux - 如何在备份脚本中实现进度条

c++ - 如何保证共享库在 Linux 发行版之间可移植?

mysql - Sql:选择包含一组特定项目的所有篮子

php - Mysql 查询在编辑的 jTable 代码中不起作用,为什么?

mysql - 查找mysql中两列共有的值

mysql - 在 Snow Leopard 上安装 MySQL 64 位后,是否可以迁移旧数据?

php - SQL显示表不起作用