Unable to start ( or reinstall ) MySQL server

Hello everyone.
As the title says, I'm struggling with installing/running MySQL.

I've followed this guide How to Install MySQL on Linux? - GeeksforGeeks and it didn't work.

Every time I tried to boot it up it gave me an error that sounded like "mysql.sock can't be found", more or less.
After struggling to uninstall it (to maybe try a reinstall in case something was broken) I am trying to install it again, but I couldn't. It kept saying that mysql was running, so I went into /etc/init.d and removed the mysql file.

Now, when trying to reinstall (running apt --fix-broken install), I am getting this:

Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
Renaming removed key_buffer and myisam-recover options (if present)
mysqld will log errors to /var/log/mysql/error.log
mysqld is running as pid 7366
Failed to preset unit: File mysql.service: Link has been severed
/usr/bin/deb-systemd-helper: error: systemctl preset failed on mysql.service: No
such file or directory
Failed to start mysql.service: Unit mysql.service not found.
invoke-rc.d: initscript mysql, action "start" failed.
Unit mysql.service could not be found.
dpkg: error processing package mysql-server-8.0 (--configure):
installed mysql-server-8.0 package post-installation script subprocess returned
error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-8.0; however:

I don't know what else to try. I've tried changing ownership, removing mysql account. I've spent several hours on google trying to fix it but I can't. I don't know why nothing seems to work on Zorin.

Does anyone have any idea of what I should do?

See if this guide helps:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.