Quantcast
Channel: Deleted /etc/mysql directory, can't run mysql - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4

Deleted /etc/mysql directory, can't run mysql

$
0
0

I have deleted /etc/mysql directory accidentally and now I can't run mysql command. Is there any way I can recover it?

Now, I am getting this error on running sudo /etc/init.d/mysql start

mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2018-08-15 20:17:03 EDT; 9s ago
  Process: 4101 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=1/FAILURE)

Aug 15 20:17:03 nullbyte systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
Aug 15 20:17:03 nullbyte systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
Aug 15 20:17:03 nullbyte systemd[1]: Stopped MySQL Community Server.
Aug 15 20:17:03 nullbyte systemd[1]: mysql.service: Start request repeated too quickly.
Aug 15 20:17:03 nullbyte systemd[1]: mysql.service: Failed with result 'exit-code'.
Aug 15 20:17:03 nullbyte systemd[1]: Failed to start MySQL Community Server.

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images