Update doc

This commit is contained in:
Frederic Guillot 2015-04-02 20:11:52 -04:00
parent f762663959
commit 65acf68dc6
2 changed files with 13 additions and 20 deletions

View File

@ -4,6 +4,14 @@ How to use Mysql or MariaDB instead of Sqlite
By default Kanboard use Sqlite to stores its data.
However it's possible to use Mysql or MariaDB instead of Sqlite.
Requirements
------------
- Mysql server
- The PHP extension `pdo_mysql` installed (Debian/Ubuntu: `apt-get install php5-mysql`)
Note: Kanboard is tested with **Mysql >= 5.5 and MariaDB >= 10.0**
Mysql configuration
-------------------
@ -18,24 +26,7 @@ CREATE DATABASE kanboard;
### Create a config file
All application constants can be overrided by using a config file at the root of the project.
The second step is to create a config file named `config.php`:
```
.
├── LICENSE
├── common.php
├── ....
├── config.php <== Our config file
├── ....
├── index.php
├── ....
└── vendor
```
### Define Mysql parameters
Copy and paste this config file and replace the values:
The file `config.php` should contains those values:
```php
<?php

View File

@ -9,6 +9,8 @@ Requirements
- A Postgresql server already installed and configured
- The PHP extension `pdo_pgsql` installed (Debian/Ubuntu: `apt-get install php5-pgsql`)
Note: Kanboard is tested with **Postgresql >= 9.4**
Configuration
-------------
@ -20,7 +22,7 @@ CREATE DATABASE kanboard;
### Create a config file
Inside our config file write those lines:
The file `config.php` should contains those values:
```php
<?php
@ -35,4 +37,4 @@ define('DB_HOSTNAME', 'REPLACE_ME');
define('DB_NAME', 'kanboard');
```
Now, you are ready to use Postgresql.
Note: You can also rename the template file `config.default.php` to `config.php`.