mysqldump.exe 问题

本文介绍了mysqldump版本与MySQL服务器版本不一致导致的备份问题,包括错误提示和相应的解决步骤。通过将MySQL安装目录下的mysqldump.exe复制到MySQLWorkbenchCE安装目录并覆盖原有文件,可以解决该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
WARNING
mysqldump.exe  is  version 5.5.16, but the MySQL Server  to  be dumped has version 5.6.11.
Because the version  of  mysqldump  is  older than the server,  some  features may  not  be backed up properly.
It  is  recommended you upgrade your  local  MySQL client programs, including mysqldump  to  a version equal  to  or  newer than that  of  the target server.
The path  to  the dump tool must  then  be  set  in  Preferences -> Administrator -> Path  to mysqldump Tool:
12:35:48 Dumping shapefiles (countries)
Running: mysqldump.exe  --defaults-extra-file="c:\users\shixz\appdata\local\temp\5\tmppn0cgl.cnf"  --user=root --max_allowed_packet=1G --host=localhost --port=3307 --default-character-set=utf8 "shapefiles" "countries"
mysqldump: Couldn 't execute ' SET  OPTION  SQL_QUOTE_SHOW_CREATE=1 ': You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' OPTION  SQL_QUOTE_SHOW_CREATE=1 ' at line 1 (1064)
Operation failed with exitcode 2
12:35:48 Dumping shapefiles (cities)
Running: mysqldump.exe --defaults-extra-file="c:\users\shixz\appdata\local\temp\5\tmpgjfy9u.cnf"  --user=root --max_allowed_packet=1G --host=localhost --port=3307 --default-character-set=utf8 "shapefiles" "cities"
mysqldump: Couldn' execute  'SET OPTION SQL_QUOTE_SHOW_CREATE=1' : You have an error  in  your SQL syntax;  check  the manual that corresponds  to  your MySQL server version  for  the  right syntax  to  use near  'OPTION SQL_QUOTE_SHOW_CREATE=1'  at  line 1 (1064)
Operation failed  with  exitcode 2
12:35:48 Dumping shapefiles (rivers)
Running: mysqldump.exe  --defaults-extra-file="c:\users\shixz\appdata\local\temp\5\tmpiehbkp.cnf"  --user=root --max_allowed_packet=1G --host=localhost --port=3307 --default-character-set=utf8 "shapefiles" "rivers"
mysqldump: Couldn 't execute ' SET  OPTION  SQL_QUOTE_SHOW_CREATE=1 ': You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' OPTION  SQL_QUOTE_SHOW_CREATE=1'  at  line 1 (1064)
Operation failed  with  exitcode 2
12:35:48 Export  of  C:\Users\shixz\Documents\dumps\Dump20130530 has finished  with  3 errors

提示就是说mysqldump的版本和当前数据库的版本不一致,解决方法就是把MySql安装目录中的bin下的mysqldump.exe复制放到MySQL Workbench CE的安装目录下,并且覆盖掉原来的mysqldump.exe

本文出自 “Hercules” 博客,请务必保留此出处http://herculeser.blog.51cto.com/3272654/1213106

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值