gpt4 book ai didi

mysqldump 未知变量 sql_mode 错误

转载 作者:行者123 更新时间:2023-11-29 21:55:27 34 4
gpt4 key购买 nike

请求有关“mysqldump”错误的帮助

我正在弄清楚为什么会发生以下错误。所以,请任何人帮助我。我的写作:A、B、C、DsA. 这是 my.ini 文件

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
basedir = C:\mysql-5.6.27
datadir = C:\mysql-5.6.27\data
port = 3306

max_allowed_packet=16M
character-set-client-handshake = false

init_connect="SET collation_connection=utf8_general_ci"
init_connect="SET NAMES utf8"
character-set-server=utf8
collation-server=utf8_general_ci

skip-character-set-client-handshake
default-character-set=utf8

#bind-address = 0.0.0.0
#explicit_defaults_for_timestamp=1

[mysql]
default-character-set = utf8

[mysqldump]
#sql_mode=NO_AUTO_VALUE_ON_ZERO

============================ini 文件结尾

B.我执行了以下命令==>

C:\mysql-5.6.27\bin> mysqldump -uroot -p --databases parkinglot > prugio.sql

C.这是我的 mysqldump 上的响应

mysqldump: unknown variable 'sql+mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES'

D.仅供引用,我将mysql版本从5.6.24升级到5.6.27。预先非常感谢您。

最佳答案

我自己刚刚找到了答案。我的 my.ini 位于两个地方。一个在C盘,另一个在D盘。这引起了困惑。当我重命名其中一个 my.ini 后,问题就没有发生。

关于mysqldump 未知变量 sql_mode 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33193307/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com