Lab : Mysql not able to run mariadb

hi Team

In Lab : MySQL Q4

On app01 start MySQL/MariaDB service on default port.

nfo_outline Hint

To start MariaDB Service: sudo service mariadb start

To start MySQL Service: sudo service mysqld start

I am able to start mysql using above hints but not able to start mariadb . The output is provided as below

Error message I get is : Package 1:mariadb-5.5.68-1.el7.x86_64 is obsoleted by mysql-community-client-5.7.33-1.el7.x86_64 which is already installed

Kindly review and suggest what needs to be done.


[thor@app01 ~]$ 
[thor@app01 ~]$ 
[thor@app01 ~]$ : sudo service mariadb start
[thor@app01 ~]$ 
[thor@app01 ~]$ sudo service mariadb start
Redirecting to /bin/systemctl start mariadb.service
Failed to start mariadb.service: Unit not found.
[thor@app01 ~]$ 
[thor@app01 ~]$ 
[thor@app01 ~]$ sudo service mysqld start
Redirecting to /bin/systemctl start mysqld.service
[thor@app01 ~]$ 
[thor@app01 ~]$ sudo service mysqld status
Redirecting to /bin/systemctl status mysqld.service
● mysqld.service - MySQL Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2021-03-08 18:53:36 UTC; 5s ago
     Docs: man:mysqld(8)
           http://dev.mysql.com/doc/refman/en/using-systemd.html
  Process: 855 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=0/SUCCESS)
  Process: 808 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
 Main PID: 857 (mysqld)
   CGroup: /docker/df57628009a303e2bd6540ff9f4edd83808c098ec6246bfb8687a7f22d319e75/system.slice/mysqld.service
           └─857 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid

Mar 08 18:53:29 app01.com systemd[1]: Starting MySQL Server...
Mar 08 18:53:36 app01.com systemd[1]: Started MySQL Server.
[thor@app01 ~]$ 
[thor@app01 ~]$ 
[thor@app01 ~]$ pwd
/home/thor
[thor@app01 ~]$ 
[thor@app01 ~]$ date
Mon Mar  8 18:53:50 UTC 2021
[thor@app01 ~]$ 
[thor@app01 ~]$ sudo service mariadb start
Redirecting to /bin/systemctl start mariadb.service
Failed to start mariadb.service: Unit not found.
[thor@app01 ~]$ 
[thor@app01 ~]$ sudo service mariadb status
Redirecting to /bin/systemctl status mariadb.service
Unit mariadb.service could not be found.
[thor@app01 ~]$ 
[thor@app01 ~]$ 
[thor@app01 ~]$ sudo yum install mariadb -y
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirror.checkdomain.de
 * epel: mirror.23media.com
 * extras: mirror.plustech.de
 * updates: mirror.fra10.de.leaseweb.net
Package 1:mariadb-5.5.68-1.el7.x86_64 is obsoleted by mysql-community-client-5.7.33-1.el7.x86_64 which is already installed
Nothing to do
[thor@app01 ~]$ 



@ppnehe You can only run one service ie, either mysql or mariadb in a server. Please try installing mariadb only, then you will be able to start the mariadb service.