Update doc
This commit is contained in:
@@ -4,6 +4,14 @@ How to use Mysql or MariaDB instead of Sqlite
|
|||||||
By default Kanboard use Sqlite to stores its data.
|
By default Kanboard use Sqlite to stores its data.
|
||||||
However it's possible to use Mysql or MariaDB instead of Sqlite.
|
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
|
Mysql configuration
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
@@ -18,24 +26,7 @@ CREATE DATABASE kanboard;
|
|||||||
|
|
||||||
### Create a config file
|
### Create a config file
|
||||||
|
|
||||||
All application constants can be overrided by using a config file at the root of the project.
|
The file `config.php` should contains those values:
|
||||||
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:
|
|
||||||
|
|
||||||
```php
|
```php
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ Requirements
|
|||||||
- A Postgresql server already installed and configured
|
- A Postgresql server already installed and configured
|
||||||
- The PHP extension `pdo_pgsql` installed (Debian/Ubuntu: `apt-get install php5-pgsql`)
|
- The PHP extension `pdo_pgsql` installed (Debian/Ubuntu: `apt-get install php5-pgsql`)
|
||||||
|
|
||||||
|
Note: Kanboard is tested with **Postgresql >= 9.4**
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
@@ -20,7 +22,7 @@ CREATE DATABASE kanboard;
|
|||||||
|
|
||||||
### Create a config file
|
### Create a config file
|
||||||
|
|
||||||
Inside our config file write those lines:
|
The file `config.php` should contains those values:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
<?php
|
<?php
|
||||||
@@ -35,4 +37,4 @@ define('DB_HOSTNAME', 'REPLACE_ME');
|
|||||||
define('DB_NAME', 'kanboard');
|
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`.
|
||||||
|
|||||||
Reference in New Issue
Block a user