i tried to restart mysql server, got this error message: Job for mysql.service failed because the control process exited with error code. See “systemctl status mysql.service” and “journalctl -xe” for details.
after running the systemctl status mysql.service, i got this; ● mysql.service - LSB: Start and stop the mysql database server daemon Loaded: loaded (/etc/init.d/mysql; bad; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2017-11-27 06:28:38 UTC; 1min 39s ago Docs: man:systemd-sysv-generator(8) Process: 12186 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)
Nov 27 06:28:38 localhost /etc/init.d/mysql[12764]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Nov 27 06:28:38 localhost /etc/init.d/mysql[12764]: [52B blob data]
Nov 27 06:28:38 localhost /etc/init.d/mysql[12764]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Nov 27 06:28:38 localhost /etc/init.d/mysql[12764]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Nov 27 06:28:38 localhost /etc/init.d/mysql[12764]:
Nov 27 06:28:38 localhost mysql[12186]: ...fail!
Nov 27 06:28:38 localhost systemd[1]: mysql.service: Control process exited, code=exited status=1
Nov 27 06:28:38 localhost systemd[1]: Failed to start LSB: Start and stop the mysql database server daemon.
Nov 27 06:28:38 localhost systemd[1]: mysql.service: Unit entered failed state.
Nov 27 06:28:38 localhost systemd[1]: mysql.service: Failed with result 'exit-code'.
i also have this message: I do: systemctl status mariadb.service I get: ● mariadb.service - MariaDB database server Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enable Drop-In: /etc/systemd/system/mariadb.service.d └─migrated-from-my.cnf-settings.conf Active: failed (Result: exit-code) since Wed 2017-09-13 11:26:44 UTC; 16s ago Process: 4210 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $WSREPNEW_CLUSTER $WSREPST Process: 4055 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || Process: 4052 ExecStartPre=/bin/sh -c systemctl unset-environment WSREPSTART_POSIT Process: 4050 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysq Main PID: 4210 (code=exited, status=1/FAILURE) Status: “MariaDB server is down” CGroup: /system.slice/mariadb.service └─3803 /usr/sbin/mysqld
when i check ee info, it says mysql is not installed. and mysql error logs are empty help!