重新指定MySQL的错误日志文件的路径和文件名**
1、在配置文件中修改log-error
vi my.cnf
log-error=/mysql/my3310/log/master-error.log
2、启动实例
[root@centos7 my3310]# /mysql/my3310/bin/mysqld_safe --defaults-file=/mysql/my3310/my.cnf &
[1] 9783
[root@centos7 my3310]# 2019-02-25T02:05:24.406457Z mysqld_safe error: log-error set to '/mysql/my3310/log/master-error.log', however file don't exists. Create writable for user 'mysql'.
由于未能创建/mysql/my3310/log/master-error.log,实例未完成启动。
4、手动创建/mysql/my3310/log/master-error.log,实例可以启动。
touch /mysql/my3310/log/master-error.log
chown mysql.mysql /mysql/my3310/log/master-error.log