ubuntu 18.04下character_set_server设置为utf8时间:2023-03-08 15:45:36打开/etc/mysql/mysql.conf.d/mysql.cnf添加以下代码: character-set-server = utf8 然后重启mysql即可