Question

Can't start mysql

I can’t start mysql since I resize to droplet

root@ohmygodzilla:~# systemctl status mariadb.service ● mariadb.service - MariaDB database server Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2018-10-31 02:25:05 UTC; 3min 32s ago Process: 9847 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=1/FAILURE) Process: 9758 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=/usr/bin/galera_recovery; [ $? -eq 0 ] && s Process: 9754 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS) Process: 9751 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS) Main PID: 9847 (code=exited, status=1/FAILURE) Status: “MariaDB server is down”

Oct 31 02:25:02 ohmygodzilla systemd[1]: Starting MariaDB database server… Oct 31 02:25:02 ohmygodzilla mysqld[9847]: 2018-10-31 2:25:02 140680916444096 [Note] /usr/sbin/mysqld (mysqld 10.1.26-MariaDB-0+deb9u1) s Oct 31 02:25:05 ohmygodzilla systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE Oct 31 02:25:05 ohmygodzilla systemd[1]: Failed to start MariaDB database server. Oct 31 02:25:05 ohmygodzilla systemd[1]: mariadb.service: Unit entered failed state. Oct 31 02:25:05 ohmygodzilla systemd[1]: mariadb.service: Failed with result ‘exit-code’.

Subscribe
Share

root@ohmygodzilla:~# sudo service mysql start Job for mariadb.service failed because the control process exited with error code. See “systemctl status mariadb.service” and “journalctl -xe” for details.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I have encountered the same problem Ubuntu 18.04 with MariaDb 10.3.13. I found potential solutions at https://mariadb.com/kb/en/library/what-to-do-if-mariadb-doesnt-start/ but so far no luck.

Check the mysql log for the startup sequence. It will show errors there. It’s usually under /var/log/mysql*