My OpenSuse 13.1 server crashed and couldn't boot but I managed to connect the hard drive to another computer and copied the files in /var/lib/mysql
On a new installation, I followed the steps outlined in this answer: https://serverfault.com/a/449238/371208
However, when I attempt to start MySQL, I get this: "Job for mysql.service failed. See 'systemctl status mysql.service' and 'journalctl -xn' for details."
On running 'journalctl -xn', this is the output:
-- Logs begin at Thu 2016-08-18 15:19:12 EAT, end at Thu 2016-08-18 17:49:02 EAT. -- Aug 18 17:45:13 CPMA dbus[600]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper' Aug 18 17:46:28 CPMA dbus[600]: [system] Activating service name='org.kde.powerdevil.backlighthelper' (using servicehelper) Aug 18 17:46:28 CPMA dbus[600]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper' Aug 18 17:48:32 CPMA systemd[1]: Starting LSB: Start the MySQL database server... -- Subject: Unit mysql.service has begun with start-up -- Defined-By: systemd
-- Support:
-- Unit mysql.service has begun starting up. Aug 18 17:49:02 CPMA mysql[6300]: Starting service MySQL warning: /var/run/mysql/mysql.sock didn't appear within 30 seconds Aug 18 17:49:02 CPMA mysql[6300]: chmod: cannot access '/var/run/mysql/mysqld.pid': No such file or directory Aug 18 17:49:02 CPMA mysql[6300]: ..failed Aug 18 17:49:02 CPMA systemd[1]: mysql.service: control process exited, code=exited status=1 Aug 18 17:49:02 CPMA systemd[1]: Failed to start LSB: Start the MySQL database server. -- Subject: Unit mysql.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
-- Unit mysql.service has failed.
-- The result is failed. Aug 18 17:49:02 CPMA systemd[1]: Unit mysql.service entered failed state.
How do I resolve this error?