From e569cc48082b0727d5cbdfbfadbc68e05e548153 Mon Sep 17 00:00:00 2001 From: Martin Dobrev Date: Fri, 25 Oct 2013 07:32:58 -0700 Subject: [PATCH] Created Installation (markdown) --- Installation.md | 69 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Installation.md diff --git a/Installation.md b/Installation.md new file mode 100644 index 0000000..de9b462 --- /dev/null +++ b/Installation.md @@ -0,0 +1,69 @@ +Follow the Installation instructions in README.md. Then for MySQL support: + +```bash +sudo apt-get install mysql-server +mysql_secure_installation +``` + +Create a DB in MySQL and apply the SQL script inside the xo-server/config folder + +```bash +mysql -u root -p +``` + +```sql +create database xoa; +quit +``` + +```bash +mysql -u root -p xoa < db.mysql.sql +``` + +Once ready please change the settings in local.yaml in order to enable MySQL support and switch userdb type to it + +```yaml +# configuration of the MySQL server. +mysql: + # Is MySQL enabled? + # + # Default: false + enabled: true + + # host + # + # Default: localhost + #host: localhost + + # port + # + # Default: 3306 + #port: 3306 + + # username + # + # Default: xoauser + username: xoauser + + # password + # + # Default: xoapass + password: xoapass + + # database + # + # Default: xoa + database: xoa + +# Configuration of the userdb +userdb: + # Type of the backend? + # + # Syntax: mysql, redis, postgres, ldap + # + # /!\ Currently supported backends: redis, mysql + # + # Default: redis + type: mysql + +``` \ No newline at end of file