Trace:
Differences ¶
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
en:tutorial:database-config [2006/09/29 08:37] – created doubleface | en:tutorial:database-config [2006/09/29 08:51] – doubleface | ||
---|---|---|---|
Line 4: | Line 4: | ||
Jelix can handle mysql, postgresql, sqlite and pdo. Through its driver system, it is possible to add other types of databases (if you don't want to use pdo). | Jelix can handle mysql, postgresql, sqlite and pdo. Through its driver system, it is possible to add other types of databases (if you don't want to use pdo). | ||
+ | |||
+ | |||
+ | ===== Access configuration file ===== | ||
+ | |||
+ | The access to a database is configured in the actu.org/ | ||
+ | |||
+ | Each profile has a name and is specified like this : | ||
+ | |||
+ | <code ini> | ||
+ | [ProfileName] | ||
+ | driver=" | ||
+ | database=" | ||
+ | host= " | ||
+ | user= " | ||
+ | password=" | ||
+ | persistent= on ; indicating if the connexion is persistent | ||
+ | </ | ||
+ | |||
+ | Except the dirver parameter, which is mandatory, the other parameters depend on the driver which is used. In general, you will have the database, host, user and password parameters. Change the content of this file according to your configuration. We will take as profile name " | ||
+ | |||
+ | <code ini> | ||
+ | default = actu.org | ||
+ | |||
+ | [actu.org] | ||
+ | driver=" | ||
+ | database=" | ||
+ | host= " | ||
+ | user= " | ||
+ | password=" | ||
+ | persistent= on | ||
+ | </ | ||
+ | |||
+ | Check in the actu.org/ | ||
+ | |||
+ | <code ini> | ||
+ | | ||
+ | </ | ||
+ | |||
+ | It is indeed sometimes interesting to have several entrance points, then several | ||