How To Install owncloud-mysql on CentOS 7

In this tutorial we learn how to install owncloud-mysql on CentOS 7. owncloud-mysql is MySQL database support for ownCloud

Introduction

In this tutorial we learn how to install owncloud-mysql on CentOS 7.

What is owncloud-mysql

This package ensures the necessary dependencies are in place for ownCloud to work with MySQL / MariaDB databases. It does not require a MySQL / MariaDB server to be installed, as you may well wish to use a remote database server. If you want the database to be on the same system as ownCloud itself, you must also install and enable a MySQL / MariaDB server package. See README.mysql for more details.

We can use yum or dnf to install owncloud-mysql on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install owncloud-mysql.

Install owncloud-mysql on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install owncloud-mysql using yum by running the following command:

sudo yum -y install owncloud-mysql

Install owncloud-mysql on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install owncloud-mysql using dnf by running the following command:

sudo dnf -y install owncloud-mysql

How To Uninstall owncloud-mysql on CentOS 7

To uninstall only the owncloud-mysql package we can use the following command:

sudo dnf remove owncloud-mysql

References

Summary

In this tutorial we learn how to install owncloud-mysql on CentOS 7 using yum and dnf.