Question
My mysql got replaced with MariaDB
Hello, my mysql got replaced with mariadb, trying to install mysql-server gives me that:
root@BananasOnFire:~# sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mysql-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
mariadb-server-10.2:i386 mariadb-server-10.2
E: Package 'mysql-server' has no installation candidate
root@BananasOnFire:~#
going to: bananasonfire.tk/phpmyadmin says:
Not Found
The requested URL /phpmyadmin was not found on this server.
Apache/2.4.18 (Ubuntu) Server at bananasonfire.tk Port 80
I lost all my databases :(
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 lost my databases too
I have just realised in 2020 that this has happened to me. Suddenly, I couldn’t log in to mysql and I couldn’t restart or reinstall despite trying all kinds of advice. I was relieved, but also extremely irritated that this command fixed everything:
sudo apt reinstall mariadb-server
I never installed maria-db. I had never heard of it until yesterday and yet it turns out I’m running maria-db not mysql. And yet this command:
sudo service mysql start
successfully restarted mysql…or is it maria-db? It’s bewildering!