错误描述:
解决方案
在/etc/my.cnf文件中添加以下配置信息
[mysqld]
bind-address=0.0.0.0
port=3306
user=root
basedir=/root/soft/mysql
datadir=/data/mysql
socket=/tmp/mysql.sock
log-error=/data/mysql/mysql.err
pid-file=/data/mysql/mysql.pid
#character config
character_set_server=utf8mb4
symbolic-links=0
explicit_defaults_for_timestamp=true
说明:user是数据库用户名
来源地址:https://blog.csdn.net/lxfdeheikeji/article/details/129760778