Comments - Installing MariaDB with yum/dnf

10 years, 1 month ago Ping Pong
This comment has the status of 'removed' and can only be seen by you.

I installed it by running below, but I have problem starting it. Detailed info is shown at the bottom.

  1. sudo yum install MariaDB-server MariaDB-client [root@localhost yum.repos.d]# sudo yum install MariaDB-server MariaDB-client Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile
  • base: mirror.sov.uk.goscomb.net
  • extras: mirror.sov.uk.goscomb.net
  • updates: centos.serverspace.co.uk mariadb | 1.9 kB 00:00 mariadb/primary_db | 22 kB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package MariaDB-client.x86_64 0:10.0.8-1 will be installed --> Processing Dependency: MariaDB-common for package: MariaDB-client-10.0.8-1.x86_64 ---> Package MariaDB-server.x86_64 0:10.0.8-1 will be installed --> Processing Dependency: perl(DBI) for package: MariaDB-server-10.0.8-1.x86_64 --> Running transaction check ---> Package MariaDB-common.x86_64 0:10.0.8-1 will be installed --> Processing Dependency: MariaDB-compat for package: MariaDB-common-10.0.8-1.x86_64 ---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed --> Running transaction check ---> Package MariaDB-compat.x86_64 0:10.0.8-1 will be installed --> Finished Dependency Resolution

Dependencies Resolved

Package Arch Version Repository Size

Installing: MariaDB-client x86_64 10.0.8-1 mariadb 11 M MariaDB-server x86_64 10.0.8-1 mariadb 41 M Installing for dependencies: MariaDB-common x86_64 10.0.8-1 mariadb 23 k MariaDB-compat x86_64 10.0.8-1 mariadb 2.7 M perl-DBI x86_64 1.609-4.el6 base 705 k

Transaction Summary

Install 5 Package(s)

Total download size: 55 M Installed size: 235 M Is this ok [y/N]: y Downloading Packages: (1/5): MariaDB-10.0.8-centos6-x86_64-client.rpm | 11 MB 01:40 (2/5): MariaDB-10.0.8-centos6-x86_64-common.rpm | 23 kB 00:00 (3/5): MariaDB-10.0.8-centos6-x86_64-compat.rpm | 2.7 MB 00:12 (4/5): MariaDB-10.0.8-centos6-x86_64-server.rpm | 41 MB 04:01 (5/5): perl-DBI-1.609-4.el6.x86_64.rpm | 705 kB 00:01 -------------------------------------------------------------------------------- Total 157 kB/s | 55 MB 05:57 warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 1bb943db: NOKEY Retrieving key from https://yum.mariadb.org/RPM-GPG-KEY-MariaDB Importing GPG key 0x1BB943DB: Userid: "Daniel Bartholomew (Monty Program signing key) <dbart@askmonty.org>" From : https://yum.mariadb.org/RPM-GPG-KEY-MariaDB Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Transaction Test Succeeded

Running Transaction Installing : perl-DBI-1.609-4.el6.x86_64 1/5 Installing : MariaDB-compat-10.0.8-1.x86_64 2/5 Installing : MariaDB-common-10.0.8-1.x86_64 3/5 Installing : MariaDB-server-10.0.8-1.x86_64 4/5 chown: invalid user: `mysql:mysql' chown: invalid user: `mysql' Cannot change ownership of the database directories to the 'mysql' user. Check that you have the necessary permissions and try again. chown: invalid user: `mysql:mysql' Installing : MariaDB-client-10.0.8-1.x86_64 5/5 Verifying : MariaDB-common-10.0.8-1.x86_64 1/5 Verifying : MariaDB-compat-10.0.8-1.x86_64 2/5 Verifying : MariaDB-server-10.0.8-1.x86_64 3/5 Verifying : MariaDB-client-10.0.8-1.x86_64 4/5 Verifying : perl-DBI-1.609-4.el6.x86_64 5/5

Installed: MariaDB-client.x86_64 0:10.0.8-1 MariaDB-server.x86_64 0:10.0.8-1

Dependency Installed: MariaDB-common.x86_64 0:10.0.8-1 MariaDB-compat.x86_64 0:10.0.8-1 perl-DBI.x86_64 0:1.609-4.el6

Complete!

[root@localhost yum.repos.d]# mysql

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory")

[root@localhost yum.repos.d]# /sbin/service mysql start

Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).

[root@localhost yum.repos.d]# /sbin/service mysql status

ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists [root@localhost yum.repos.d]#

 
10 years, 1 month ago Elena Stepanova

Try to check the server error log. It should normally be /var/lib/mysql/<hostname>.err, unless it was configured differently.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.