zoukankan      html  css  js  c++  java
  • mysqldump: [ERROR] unknown variable 'database=test'.

    背景:
    导出数据库test库的test表数据出现报错信息:mysqldump: [ERROR] unknown variable 'database=test'.
    
    原来是my.cnf参数文件配置了以下内容:
    [client]
    user=test
    port=3306
    database=test
    
    将database参数注释掉,就不再出现报错。
    
    [root@node01 tmp]# mysqldump -utest -pmysql test test > /tmp/ttt.sql
    mysqldump: [Warning] Using a password on the command line interface can be insecure.
    Warning: A partial dump from a server that has GTIDs will by default include the GTIDs of all transactions, even those that changed suppressed parts of the database. If you don't want to restore GTIDs, pass --set-gtid-purged=OFF. To make a complete dump, pass --all-databases --triggers --routines --events.
    

      

  • 相关阅读:
    10月27号
    10月23号
    10月26号
    10月30号
    10月28号
    10月29号
    JAVA日报
    JAVA日报
    JAVA日报
    JAVA日报
  • 原文地址:https://www.cnblogs.com/orcl-2018/p/14103918.html
Copyright © 2011-2022 走看看