Can I safely remove mariadb from Centos Linux? - mysql

I just did a clean install of CentOS Linux. The first thing I did after installing CentOS was to download MySQL and try to install the -server rpm file. But the installation fails with a lot of messages stating conflicts with MariaDB packages which seem to be redundant to those in MySQL. I want to use MySQL as my database.
Are there any reasons why I should not just delete mariadb, so that the conflicts can be resolved? If mariadb performs some important functions in CentOS, I do not want to end up having my system crash.

You could use MariaDB as mysql version 5.5 for it is just another MYSQL branch...
In Centos 7, it is a alternative project of oracle mysql. It contains all mysql functions and optimize structures, data processing, Algorithm etc..
you could even login the server with a "mysql" command.
you don't need to pay attentions on the name, it is no problem to your former mysql projects.
ps:
I don't think that a linux system will have a "clean", "pure" os environment. Linux is a free and open source system which means you could install and remove every thing with no problem.

To have MySQL database functionality you can install either the MySQL packages or the MariaDB packages. MariaDB is a fork originating from the same MySQL code base. For compatibility see https://mariadb.com/kb/en/mariadb/mariadb-vs-mysql-compatibility/
Yes, you can remove MariaDB packages and replace them by MySQL packages.

Related

How to fix a broken MySQL installation?

Installing a PHP application that requires MySQL or MariaDB, I first installed MariaDB via 'apt install' from the MariaDB repos, but there were behaviours with the installation of the application that seemed to be caused by some kind of incompatibility. Calls to the DB were timing out, and although I could see it was creating the DB, it was impossible to set the application up in its setup routine.
So I used apt remove to get rid of MariaDB. I saw the application had a *.deb installer for all requirements (wish I'd seen this sooner!) and, after removing PHP and Nginx, I attempted to install it the normal way. Unfortunately, the MySQL portion of the installation failed with:
Automatic maintenance of MySQL Server daemon disabled.
Packaging maintainer scripts detected a case that it does not know how to handle and cannot continue configuring MySQL. Automatic management of your MySQL Installation has been disabled to allow other packaging tasks to complete. For more details, see /etc/mysql/FROZEN
Unfortunately, /etc/mysql/FROZEN is a symlink to a non-existent file explaining downgrading. I can't run the uninstaller of the overall package or repair the installation with sudo --fix-broken install because the installer requires a MySQL password I can't provide it.
How can I fix my borked MySQL installation? If I could just get to a place to have MySQL run properly, understanding what left-overs perhaps from the MariaDB installation that I need to delete manually before trying to repair it, that would be helpful. FYI, the version of MariaDB was 10.3, and the version of MySQL the application package was installing was 5.7.
Any suggestions appreciated.

How can i install mysql again as i installed workbench mistakenlt once?

I installed mysql workbench mistakenly. but now i can't install mysql community server. Please tell me how to do it?
I doubt that MySQL Workbench's installation really prevents you from installing a MySQL server. There must be a different problem. Use the MySQL Installer for Windows, which gives you everything you need related to MySQL. It should also recognize the installed WB and offer you updates, if there are any.
It is better to uninstall workbench and then setup community server.
If you are doing this in windows

Updating MySQL 5.1 to 5.6 on Glibc 2.11

On our server we are running GNU Libc 2.11 and we want to update MySQL 5.1 to 5.6.
Just to be sure that this won't fail i'm looking for information of if this can be done with the current Glibc version.
Anyone? :)
Yes.
Linux distributions use packages to install or uninstall software. These are similar things as the .msi on windows, but they contain dependency informations, too: every package contains which other packages it needs, and at least (or at most) which versions.
There are multiple package management systems (rpm and dpkg are the most common), it depends on the distro which is used by you, but they are the same from this aspect.
If you install mysql 5.6, it will either upgrade the libc as well (and so, all other programs which need a newer libc), or it won't be installable. Or it will simply work (if they are compatible).
A bigger danger for the mysql upgrades isn't the possibility of the incompatibility with the libc, but the incompatibility of the mysql databases between the mysql versions. I.e. your mysql-5.6 will perfectly work with the libc, but it will have troubles to use the databases files he got from the 5.1.
It is highly suggested to make a backup from your mysql directories (/var/lib/mysql) and configurations (/etc/mysql), and even a dump (mysqldump --all).

MySQL upgrade from 5.0 to 5.6 on Linux

I need to upgrade mysql 5.0 to mysql 5.6 on Linux Server . What are the commands or what are the steps should I follow . I am new to mySQL and Linux. I have gone through the steps to follow but I could not get any complete idea like how to get the software copied to Linux and what are the mysql commands on Linux to upgrade the existing mysql.
Check the Official Documentation on MySql for the instructions to Upgrade your MySql server.
As #Michael said, It heavily depends on your Linux distro. Generally you can upgrade using Yum Repository/Apt Repository via Terminal. You may refer to the documentation for more information.

Is it safe to replace MySQL to Percona Server with XtraDB on Debian Lenny?

I would like to replace MySQL 5.1 on my Debian Lenny 32-bit server to Percona Server with XtraDB. The main reason is better performance of Percona.
It's production server with many services running. Many other software may depend on mysql-client and other mysql shared libraries.
Is it safe to replace MySQL?
By "safe" I mean: 1. remove mysql, 2. install percona 3. everything works as before
Will it break dependencies in third party software?
Will it require to change configuration of third party software (ie. socket path, server port, shared libraries path)?
Will it require to install trillion of additional packages?
I really don't want situation with broken libraries, missing or incompatible header files and so on
We are currently in the process of upgrading from MySQL 4.1 to Percona Server 5.5 at work and Percona is as they say on their site a complete drop-in replacement for MySQL, the binaries use the same names, it uses the same libraries, same config file placement, takes the same parameters and it has exactly the same SQL syntax. They should also be data file compatible on the same version (MySQL 5.1 to Percona 5.1, etc) but it's nothing I've personally verified.
You are able to do an apt-get install percona-server-server-5.1 after adding their repositiories and it will automatically replace MySQL because it marks it as a conflicting package. But you must take an SQL dump of your database first, of course.
We currently have replication set up from a MySQL 4.1 master to a couple of Percona 5.5 slaves and have had no problems inserting SQL dumps either.
... don't know.
In my experience, the only way is to make up a copy of your existing setup on an old machine and run some tests. Then swap over to the new DB and run same tests again.
I just swapped a set of applications from Tomcat 5 to Tomcat 6 and in theory, with one or two tweaks, all should have worked fine. First time I tried it OpenJava was installed and the garbage collection fouled things up. Second time around with Sun Java, some dodgy date handling fouled things up and had to be corrected, seems to run fine now.