kn007的个人博客
♥ You are here: Home > 软件与网络 > VPS > 更新至MySQL 8.0.27

更新至MySQL 8.0.27

by | 14 Comments

提醒:本文最后更新于 919 天前,文中所描述的信息可能已发生改变,请仔细核实。

刚刚MySQL推出了8.0.27,更新后留意到几个警告,想起好像很久没写(shui)文章了,那么来一篇小记录。

来看第一个警告,因为我不使用SSL,如果你正常配置了SSL,除非你使用了过时的协议,不然是不会有警告的。

[Server] The syntax '--ssl=off' is deprecated and will be removed in a future release. Please use --tls-version=invalid instead.

解决办法如其所说,如果你是在命令行定义的话。如果你跟我一样是在my.cnf定义了skip-ssl,那么去掉它,然后在mysqld字段下(以下其他内容皆在此字段下),添加如下内容即可解决:

tls_version=''
admin_tls_version=''

第二个,算是历史遗留问题?不过已经不重要了(在我看来)。

[Server] The syntax '--transaction-write-set-extraction' is deprecated and will be removed in a future release.

这个按文档来看,可以说没啥用了,直接注释掉或删掉就好了。

第三个嘛,懂的都懂,在我之前的文章有提及。

[Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.

这个说白很多传统项目,或者很多懒鬼,都还是需要的。毕竟很多还是使用着mysql_native_password,解决办法就是将其替换成:

authentication_policy=*

EOF

转载请注明转自:kn007的个人博客的《更新至MySQL 8.0.27

donate
有所帮助?

Comments

14 Comments立即评论
  1. 回复

    我看网上评测说8的性能不如5.7的,不知真假 :idea:

icon_wink.gificon_neutral.gificon_mad.gificon_twisted.gificon_smile.gificon_eek.gificon_sad.gificon_rolleyes.gificon_razz.gificon_redface.gificon_surprised.gificon_mrgreen.gificon_lol.gificon_idea.gificon_biggrin.gificon_evil.gificon_cry.gificon_cool.gificon_arrow.gificon_confused.gificon_question.gificon_exclaim.gif