260614d
Configure MariaDB / MySQL for ownCloud
260614d
======================================
260614d
260614d
To use MariaDB / MySQL as database backend, you need to do the following:
260614d
260614d
1. Make sure that your mysql service is configured and running properly. If this
260614d
   is a fresh install, you will need to run "systemctl enable mysqld.service;
260614d
   systemctl start mysqld.service" (or mariadb.service) as root. It's also
260614d
   strongly advised to run "mysql_secure_installation" after starting the
260614d
   database for the first time.
260614d
260614d
2. Log in to the database as privileged user to create the database and a
260614d
   dedicated user account for ownCloud:
260614d
   $ mysql -u root -p
260614d
     CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
260614d
     CREATE DATABASE IF NOT EXISTS nextcloud;
260614d
     GRANT ALL PRIVILEGES ON nextcloud.* TO 'username'@'localhost' IDENTIFIED BY 'password';
260614d
   Choose identifier and password accordingly.
260614d
260614d
Now you can launch the ownCloud setup screen, select MySQL in the advanced
260614d
settings and fill in your credentials.
260614d
260614d
References
260614d
==========
260614d
260614d
https://fedoraproject.org/wiki/MariaDB
260614d
https://mariadb.com/kb/en/mariadb/documentation/
260614d
http://doc.nextcloud.org/server/7.0/admin_manual/configuration/configuration_database.html