SQLite: Difference between revisions
From MoodleDocs
Helen Foster (talk | contribs) (Installing Moodle template) |
(It didn't work with native. Changed to 'pdo') |
||
Line 4: | Line 4: | ||
== Configuring Moodle for SQLite == | == Configuring Moodle for SQLite == | ||
No configuration is required. Simply set ''$CFG->dbtype'' in config.php to ' | No configuration is required. Simply set ''$CFG->dbtype'' in config.php to 'sqlite3', and set ''$CFG->dblibrary'' to 'pdo'. The other database parameters are not used. The database tables are stored in the 'moodledata' file area. | ||
== See Also == | == See Also == |
Revision as of 09:47, 20 February 2013
SQLite is a serverless SQL database implementation. Moodle has experimental support for it. It is not recommended for production Moodle sites.
Configuring Moodle for SQLite
No configuration is required. Simply set $CFG->dbtype in config.php to 'sqlite3', and set $CFG->dblibrary to 'pdo'. The other database parameters are not used. The database tables are stored in the 'moodledata' file area.