After restarting the server, the database does not return.
using the commands to restore the database none of them worked
root @ ubuntu-s-1vcpu-1gb-nyc3-01: ~ # systemctl reload mysql
Failed to reload mysql.service: Unit mysql.service not found.
root @ ubuntu-s-1vcpu-1gb-nyc3-01: ~ # systemctl restart mysql
Failed to restart mysql.service: Unit mysql.service not found.
root @ ubuntu-s-1vcpu-1gb-nyc3-01: ~ # systemctl reload mysql.service
Failed to reload mysql.service: Unit mysql.service not found.
root @ ubuntu-s-1vcpu-1gb-nyc3-01: ~ # systemctl restart mysql.service
Failed to restart mysql.service: Unit mysql.service not found.
root @ ubuntu-s-1vcpu-1gb-nyc3-01: ~ # /etc/init.d/mysql restart
[…] Restarting mysql (via systemctl): mysql.serviceFailed to restart mysql.service: Unit mysql.service not found.
failed
root @ ubuntu-s-1vcpu-1gb-nyc3-01: ~ # /etc/init.d/mysql start
[…] Starting mysql (via systemctl): mysql.serviceFailed to start mysql.service: Unit mysql.service not found.
failed
root @ ubuntu-s-1vcpu-1gb-nyc3-01: ~ # service mysql restart
Failed to restart mysql.service: Unit mysql.service not found.
Checking:
root @ ubuntu-s-1vcpu-1gb-nyc3-01: ~ # ps -aux | grep mysql
root 1928 0.0 0.1 14856 1084 pts / 0 S + 21:34 0:00 grep --color = auto mysql
mysql logs showed no error.
directory does not exist.
root @ ubuntu-s-1vcpu-1gb-nyc3-01: ~ # cd / var / run / mysqld /
-bash: cd: / var / run / mysqld /: No such file or directory
I tried to create the file
root @ ubuntu-s-1vcpu-1gb-nyc3-01: / lib / systemd / system # systemctl enable mysql.service
Synchronizing state of mysql.service with SysV service script with / lib / systemd / systemd-sysv-install.
Executing: / lib / systemd / systemd-sysv-install enable mysql
Failed to enable unit: File mysql.service: Link has been severed
How to recover ???