主库插入重复主键导致从库不工作了,错误消息如下 Error ‘Duplicate entry ’10… 继续阅读 mysql主从问题 Error ‘Duplicate entry ‘10587590’ for key ‘PRIMARY” on query. Default database: ‘test’. Query: ‘INSERT INTO `user_invite_relation` (`user_info_id`, `parent_id`, `level`) VALUES (‘10592996’, ‘10592991’, ’82’)’

[Err] 1055 – Expression #1 of ORDER BY clause is n… 继续阅读 [Err] 1055 – Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column ‘information_schema.PROFILING.SEQ’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

解决方法: 第一种是在创建子程序(存储过程、函数、触发器)时,声明为DETERMINISTIC或NO… 继续阅读 [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)