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

Database FAQ: Difference between revisions

From MoodleDocs
Line 25: Line 25:
* [http://learn.open.ac.uk/mod/oublog/viewpost.php?post=5741 "Database abstraction layers and Moodle"] from Christopher Douce's blog (Open University)
* [http://learn.open.ac.uk/mod/oublog/viewpost.php?post=5741 "Database abstraction layers and Moodle"] from Christopher Douce's blog (Open University)
* [http://moodle.org/mod/forum/discuss.php?d=65072 "Moodle database design issues I'd like to tackle/see tackled"] in the Moodle forum (from 2007).
* [http://moodle.org/mod/forum/discuss.php?d=65072 "Moodle database design issues I'd like to tackle/see tackled"] in the Moodle forum (from 2007).
* [www.jchq.net/moodle2erd.mwb MySQL workbench file] for download, for using with [http://www.mysql.de/products/workbench/ MySQL Workbench] - Related forum discussion: [http://moodle.org/mod/forum/discuss.php?d=108886 Referential integrity in Moodle]  
* [http://www.jchq.net/moodle2erd.mwb MySQL workbench file] for download, for using with [http://www.mysql.de/products/workbench/ MySQL Workbench] - Related forum discussion: [http://moodle.org/mod/forum/discuss.php?d=108886 Referential integrity in Moodle]  


=== Moodle core libraries ===
=== Moodle core libraries ===

Revision as of 14:46, 22 January 2010

Note: This article is a work in progress. Please use the page comments or an appropriate moodle.org forum for any recommendations/suggestions for improvement.


Databases and Moodle

When talking about Moodle and databases there are actually two different kind of things which can be meant:

a) The Moodle activity named Database
b) The database on your server where Moodle stores all its content

a) Database activity module

See

b) Moodle database

See

Moodle core libraries

Moodle's core libraries provide lots of functions for working with the database. See /lib/datalib.php for higher level functions and /lib/dmllib.php for lower level functions.

XMLDB

XMLDB stores the database definition in an XML format that can be used to install Moodle on any database.

Introduction to Moodle Programming course:

Different kinds of databases

New database layer in Moodle 2.0

See also: