时间:2021-07-01 10:21:17 帮助过:39人阅读
[Err] 1418 - This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
在客户端上执行
SET GLOBAL log_bin_trust_function_creators = 1;
或修改MySQL配置文件
[mysqld]
log-bin-trust-function-creators=1
报出“[Err] 1286 - Unknown storage engine ‘FEDERATED‘”问题
配置文件my.cnf添加下列参数即可。
[mysqld]
federated
mysql> flush privileges;
ERROR 1146 (42S02): Table ‘mysql.servers‘ doesn‘t exist报错,说mysql.servers表不存在.
既然不存在那就创建一个,当然要先use mysql才行,不然直接创建会报错.
CREATE TABLE `servers` (
`Server_name` char(64) NOT NULL,
`Host` char(64) NOT NULL,`Db` char(64) NOT NULL,
`Username` char(64) NOT NULL,
`Password` char(64) NOT NULL,
`Port` int(4) DEFAULT NULL,
`Socket` char(64) DEFAULT NULL,
`Wrapper` char(64) NOT NULL,
`Owner` char(64) NOT NULL,
PRIMARY KEY (`Server_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT=‘MySQL Foreign Servers table‘;
OK,#问题解决了.
mysql> flush privileges;
Query OK, 0 rows affected (0.06 sec)
mysqlbinlog: unknown variable ‘default-character-set=utf8‘
1:是把client选项组中default-character-set=utf8选项屏蔽掉,如 #default-character-set=utf8
然后运行mysqlbinlog工具,则不会产生任何问题了。当然记得在不在使用mysqlbinlog工具时,
把#default-character-set=utf8 选项恢复为default-character-set=utf8
2:是用mysqlbinlog --no-defaults mysql-bin.000004 命令打开
2018-11-22 12:36:06 7535 [ERROR] Failed to open log (file ‘./mysql-bin.000012‘, errno 2)
删除mysql-bin.index文件,重新启动
遇到的mysql问题(待续)
标签:wan key file 配置文件 serve set 解决方法 nis character