patternsqlModerate
Mysql could not be started because unknown variable 'log-syslog=1'
Viewed 0 times
variablesyslogstartedlogunknowncouldbecausemysqlnot
Problem
Platform System: WSL(ubuntu 18.04).
when installed mysql-server 8.0 sucess, i try to start mysql. But it's fail to start.Then checked the error.log.
how to fix it ?
when installed mysql-server 8.0 sucess, i try to start mysql. But it's fail to start.Then checked the error.log.
2019-02-26T03:13:51.609895Z 0 [ERROR] [MY-000067] [Server] unknown variable 'log-syslog=1'.how to fix it ?
Solution
I've run into the same problem as yourself and found this question while looking for solution. Eventually I found the culprit.
You will find that
The only thing you have to do is remove syslog. I just commented it out:
And now it works.
It is weird that it comes preconfigured like that since it is deprecated/removed (I did a clean install of v8.0.15).
You will find that
/etc/mysql/mysql.conf.d/mysqld_safe_syslog.cnf contains 2 rows:[mysqld_safe]
syslogThe only thing you have to do is remove syslog. I just commented it out:
[mysqld_safe]
#syslogAnd now it works.
It is weird that it comes preconfigured like that since it is deprecated/removed (I did a clean install of v8.0.15).
Code Snippets
[mysqld_safe]
syslog[mysqld_safe]
#syslogContext
StackExchange Database Administrators Q#230736, answer score: 14
Revisions (0)
No revisions yet.