1.现象 在mysql用sql文件导入数据库时,提示ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTED is empty. 说明:mysql数据库是刚安装的,从未配置过主从复制,也还没有配置过GTID的主从复制. 2.解决方法 查阅的网上资料后,测试后发现下面这个方法可以解决我的问题 进入mysql模式,重置master # mysql -u root -p…
环境是python 3 问题: 使用binascii方法一直出现报错TypeError: a bytes-like object is required, not 'str' #coding: utf-8 import binascii a = 'worker' b = binascii.b2a_hex(a) print(b) #b = binascii.b2a_hex(a) #TypeError: a bytes-like object is required, not 'str' 解决方法:…
报错信息: InnoDB: An optimized (without redo logging) DDLoperation has been performed. All modified pages may not have been flushed to the disk yet. 为了解决这个错误,percona新加了三个参数xtrabackup --lock-ddl, xtrabackup --lock-ddl-timeout, xtrabackup --lock-ddl-per-ta…
执行如下语句: mysql> select * from users into outfile "F:\Develop\MySQL57\Uploads\users.txt" lines terminated by "\r\n"; 报错信息:ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this sta…