- Code: Select all
[root@cortex etc]# systemctl start mysqld.service
Job failed. See system journal and 'systemctl status' for details.
[root@cortex etc]# systemctl status mysqld.service
mysql.service - LSB: start and stop MySQL
Loaded: loaded (/etc/rc.d/init.d/mysql)
Active: failed (Result: exit-code) since Fri, 01 Jun 2012 09:27:48 +0200; 1min 0s ago
Process: 12261 ExecStart=/etc/rc.d/init.d/mysql start (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/mysql.service
Jun 01 09:27:44 cortex mysql[12261]: 120601 9:27:44 [Warning] option 'query_cache_limit': unsigned value 429496...967295
Jun 01 09:27:44 cortex mysql[12261]: 120601 9:27:44 [Warning] option 'table_definition_cache': unsigned value 1...524288
Jun 01 09:27:44 cortex mysql[12261]: expr: Syntaxfehler
Jun 01 09:27:44 cortex mysql[12261]: /etc/rc.d/init.d/mysql: Zeile 338: [: : Ganzzahliger Ausdruck erwartet.
Jun 01 09:27:48 cortex mysql[12261]: Starting MySQL: ....[FEHLER]
[root@cortex etc]#
The lines around 338 are:
- Code: Select all
if [ "`get_mysql_id $NEW_VER`" -gt "`get_mysql_id $OLD_VER`" ]; then
upgrade_message="WARNING: mysql_upgrade should be run (as root). The upgrade from mysql-$OLD_VER to mysql-$NEW_VER may require it."
echo $echo_n "$upgrade_message"
logger -p daemon.info -t mysql $upgrade_message
echo
fi
So, it seems to have to do with the upgrade (mysql -> mariadb). But I could run mysql_upgrade only if mysql already started...