[owncloud] more updates to database documentation

Adam Williamson adamwill at fedoraproject.org
Fri Aug 29 06:22:50 UTC 2014


commit dd8ca319b51e884fcd540ad38c2bb438ffb7ea39
Author: Adam Williamson <awilliam at redhat.com>
Date:   Thu Aug 28 16:57:15 2014 -0700

    more updates to database documentation

 owncloud-mysql.txt      |   36 +++++++++++++++++++++++++-----------
 owncloud-postgresql.txt |   13 +++++++++++--
 2 files changed, 36 insertions(+), 13 deletions(-)
---
diff --git a/owncloud-mysql.txt b/owncloud-mysql.txt
index 0490bd7..23b0ac6 100644
--- a/owncloud-mysql.txt
+++ b/owncloud-mysql.txt
@@ -1,14 +1,28 @@
-Configure MySQL for ownCloud
-============================
-Before you can use MySQL as database backend, you need to follow a couple of steps:
+Configure MariaDB / MySQL for ownCloud
+======================================
 
-1. make sure that your mysql service is configured and running properly
-2. log in to mysql as privileged user to create the database and a dedicated user account for ownCloud:
-mysql -u root -p
- CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
- CREATE DATABASE IF NOT EXISTS owncloud;
- GRANT ALL PRIVILEGES ON owncloud.* TO 'username'@'localhost' IDENTIFIED BY 'password';
+To use MariaDB / MySQL as database backend, you need to do the following:
 
-Choose identifier and password accordingly.
+1. Make sure that your mysql service is configured and running properly. If this
+   is a fresh install, you will need to run "systemctl enable mysqld.service;
+   systemctl start mysqld.service" (or mariadb.service) as root. It's also
+   strongly advised to run "mysql_secure_installation" after starting the
+   database for the first time.
 
-Now you can launch the ownCloud setup screen, select MySQL in the advanced settings and fill in your credentials.
+2. Log in to the database as privileged user to create the database and a
+   dedicated user account for ownCloud:
+   $ mysql -u root -p
+     CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
+     CREATE DATABASE IF NOT EXISTS owncloud;
+     GRANT ALL PRIVILEGES ON owncloud.* TO 'username'@'localhost' IDENTIFIED BY 'password';
+   Choose identifier and password accordingly.
+
+Now you can launch the ownCloud setup screen, select MySQL in the advanced
+settings and fill in your credentials.
+
+References
+==========
+
+https://fedoraproject.org/wiki/MariaDB
+https://mariadb.com/kb/en/mariadb/documentation/
+http://doc.owncloud.org/server/7.0/admin_manual/configuration/configuration_database.html
diff --git a/owncloud-postgresql.txt b/owncloud-postgresql.txt
index f035a93..f2b8a73 100644
--- a/owncloud-postgresql.txt
+++ b/owncloud-postgresql.txt
@@ -22,8 +22,10 @@ To use PostgreSQL as database backend, you need to do the following:
    appropriate authentication mechanism in /var/lib/pgsql/data/pg_hba.conf.
    For a simple configuration with ownCloud and PostgreSQL on the same host,
    set the METHOD for the lines that apply to localhost TCP/IP connections
-   to "password". Note that this will result in the password being sent
-   unencrypted from ownCloud to the PostgreSQL server. For more details, see
+   to "password". ownCloud does *not* use a socket to communicate with the
+   database, so the 'local' line in pg_hba.conf does *not* apply to it.
+   Note that this will result in the password being sent unencrypted from
+   ownCloud to the PostgreSQL server. For more details, see
    http://www.postgresql.org/docs/9.3/static/auth-pg-hba-conf.html.
    
 4. You also need to allow the web server to communicate with the database by
@@ -32,3 +34,10 @@ To use PostgreSQL as database backend, you need to do the following:
    
 Now you can launch the ownCloud setup screen, select PostgreSQL in the advanced
 settings and fill in your credentials.
+
+References
+==========
+
+https://fedoraproject.org/wiki/PostgreSQL
+http://www.postgresql.org/docs
+http://doc.owncloud.org/server/7.0/admin_manual/configuration/configuration_database.html


More information about the scm-commits mailing list