Note: You are currently viewing documentation for Moodle 2.1. Up-to-date documentation for the latest stable version is available here: SQLite.

SQLite: Difference between revisions

From MoodleDocs
(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 'sqlite'. The other database parameters are not used. The database tables are stored in the 'moodledata' file area.  
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.

See Also