mysqldump导出时: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CR

WBOY
Release: 2016-06-07 16:45:15
Original
1126 people have browsed it

mysqldump导出时: Couldn

Linux公社

首页 → 数据库技术

背景:

阅读新闻

mysqldump导出时: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1':

[日期:2014-10-27] 来源:Linux社区 作者:Linux [字体:]

mysqldump导出时: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1':

在用mysqldump导出时报如下错误:

[root@localhost ~]# mysqldump -uroot -p -d -R test > test.sql

Enter password:

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)

经查是mysqldump版本问题,运行的mysql server是5.6.13 ,在使用yum安装dbd驱动时自动安装了5.0.9的mysql rpm包:

[root@localhost ~]# mysqldump --version

mysqldump Ver 10.11 Distrib 5.0.95, for RedHat-linux-gnu (x86_64)

[root@localhost ~]# which mysqldump

/usr/bin/mysqldump

用5.6版本的mysqldump覆盖或者指定目录运行即可:

[root@localhost ~]# cp /MysqlData/base/mysql/bin/mysqldump /usr/bin/mysqldump
cp:是否覆盖“/usr/bin/mysqldump”? y

Linux下通过mysqldump备份MySQL数据库成sql文件

Linux中使用mysqldump对MySQL数据库进行定时备份

mysqldump缺失-q参数导致MySQL被oom干掉

mysqldump和LVM逻辑卷快照

MySQL备份方案-->(利用mysqldump以及binlog二进制日志)

[MySQL] 用mysqldump制作文本备份

本文永久更新链接地址:

linux

  • 0
  • mysqldump导出时报2002 套接字错误

    ORA-28001: the password has expired 解决

    相关资讯mysqldump

    图片资讯

    本文评论  查看全部评论(0)

    评论声明

    最新资讯

    本周热门

    Linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
    本站(LinuxIDC)所刊载文章不代表同意其说法或描述,,仅为提供更多信息,也不构成任何建议。


    Copyright © 2006-2014 Linux公社 All rights reserved 浙ICP备06018118号

    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!