A
A
Alexander Kuzmin2014-01-14 09:22:44
MySQL
Alexander Kuzmin, 2014-01-14 09:22:44

How to completely remove MariaDB and replace with MySQL?

Sup, guys.
The thing is, MariaDB is on Debian 7.
But since it is not particularly compatible with some packages, it became necessary to switch to MySQL.
The only question is: how to do it?
I tried in different positions, but did not achieve the desired result.
In general, help.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Leonid Derevianko, 2015-05-29
@leomrakobes

complete removal of mariaDB UBUNTU
(paths and commands may differ for Debian)
sudo apt-get --purge remove mariadb*
sudo apt-get autoremove
sudo apt-get autoclean
if errors occur during removal,
go to the /var/lib/dpkg/info folder
and delete everything there that starts with mariadb and
repeat the previous three commands on mysql
after preferably
sudo apt-get --purge remove mysql*
sudo apt-get autoremove
sudo apt-get autoclean
making sure that there is nothing in /var/lib/dpkg/info left -
delete the /etc/mysql folder
delete the /var/lib/mysql folder ATTENTION all your databases are stored here, so if you need to leave them - rename the folder and after installing mysql copy it to a new one - ONLY those that you created yourself (without system ones)
now do not forget to clean the source of the mariaDB repository that you added when installing it,
here nano /etc/apt/sources.list
otherwise, when you try to install a pure muscle, you will see how the packages from Mary are installed, and you will have to start the removal all over again because you will get an error during installation. :(
before installing MySql, run
sudo apt-get update
sudo apt-get upgrade
then, as usual, sudo apt-get install mysql-server
, in this case, the installation may not ask for a password for root, but will pick up the existing one
you can check the installation with the
service mysql status command,
then
sudo apt-get install phpmyadmin (if necessary)
Good luck!

V
Vladimir Pilipchuk, 2014-01-14
@SLIDERWEB

apt-get remove / purge are not suitable?
I'm not a pervert, but describe the poses, please. Maybe you just went to her, just don't stand side?

S
Sergey, 2014-01-14
@bondbig

What is incompatible with?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question