[Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use '--relay-log=qht131-relay-bin' to avoid this problem.
这个警告提示本身的意思,作为slave,为防止因为主机名变更导致relay log文件名无效的问题,最好设置'--relay-log=qht131-relay-bin',也是就指定relay-log为固定的名称。
如果确定这台机器不会做为salve使用,可以reset slave来处理,如果是组复制里的成员,还是设置一下这个参数比较好,万一哪一天可能从主数据库变成从数据库了也说不定。
[Warning] Failed to set up SSL because of the following SSL library error: Unable to get private key
在默认的主从复制过程或远程连接到MySQL/MariaDB所有的链接通信中的数据都是明文的,在局域网内连接倒问题不大;要是在外网里访问数据或则复制,则安全隐患会被放大很多。
解决问题的方法:https://www.cnblogs.com/zhoujinyi/p/4191096.html
[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
其原因是从 5.6开始,timestamp 的默认行为已经是 deprecated 了。
设置explicit_defaults_for_timestamp=true将其timestamp的默认值关闭就可以了。(5.6之前timestamp属性默认为NOT NULL且是有默认值的,5.6之后默认为NULL,而且不会有默认的值)
建议还是设置一个为true比较好,具体参考:http://www.jb51.net/article/71052.htm