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
(→‎Moodle database: moved forum link to the correct sub-section)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Work in progress}}
{{Work in progress}}
There are two types of "databases" in Moodle:
: a) The '''Moodle activity''' named ''Database''
::* [[Database activity module FAQ]] is the FAQ page
: b) The '''database on your server''' where Moodle stores all its content
Here is some additional information that may help guide you to more information to answer your FAQs


== 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 ==
== Database activity module ==


Moodle Docs
Moodle Docs
Line 16: Line 18:
* [[Import_and_export_FAQ#How_do_I_import_and_export_database_entries.3F| How do I import and export database entries?]]
* [[Import_and_export_FAQ#How_do_I_import_and_export_database_entries.3F| How do I import and export database entries?]]


== b) Moodle database ==
== Moodle database ==


Moodle Docs
===Moodle Docs links===
* [[:Category:DB]]
* [[:Category:DB]]
* [http://moodle.org/mod/forum/view.php?id=45 Databases forum]
* [[Development:Database schema introduction]]
* [[Development:Database schema introduction]]
* [[Development:Database Schema]] - The files available here are in [http://fabforce.net/dbdesigner4/ DBDesigner 4] format. DBDesigner 4 is a schema drawing program for MySQL data bases released under GPL.
* [[Development:Database Schema]] - The files available here are in [http://fabforce.net/dbdesigner4/ DBDesigner 4] format.  
: DBDesigner 4 is a schema drawing program for MySQL data bases released under GPL.
* [[Create Moodle site database]]
* [[Create Moodle site database]]


Moodle Forums
===Moodle Forums links===
* [http://moodle.org/mod/forum/view.php?id=45 Databases forum]
* [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).
* [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]  
* [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]  


Miscellaneous
===Non Moodle.org links===
* [http://learn.open.ac.uk/mod/oublog/viewpost.php?post=5741 "Database abstraction layers and Moodle"] from [http://moodle.org/user/view.php?id=78896&course=5 Christopher Douce]'s blog (Open University)
* [http://learn.open.ac.uk/mod/oublog/viewpost.php?post=5741 "Database abstraction layers and Moodle"] from [http://moodle.org/user/view.php?id=78896&course=5 Christopher Douce]'s blog (Open University)




=== Moodle core libraries ===
=== Moodle core libraries ===
Moodle's core libraries provide lots of functions for working with the database. See [http://xref.moodle.org/nav.html?lib/datalib.php.html /lib/datalib.php] for higher level functions and [http://xref.moodle.org/nav.html?lib/dmllib.php.html /lib/dmllib.php] for lower level functions.
Moodle's core libraries provide lots of functions for working with the database.  
 
* [http://xref.moodle.org/nav.html?lib/datalib.php.html /lib/datalib.php] for higher level functions  
* [http://xref.moodle.org/nav.html?lib/dmllib.php.html /lib/dmllib.php] for lower level functions


== XMLDB ==
== XMLDB ==

Latest revision as of 13:09, 24 November 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.


There are two types of "databases" in Moodle:

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

Here is some additional information that may help guide you to more information to answer your FAQs


Database activity module

Moodle Docs

Moodle database

Moodle Docs links

DBDesigner 4 is a schema drawing program for MySQL data bases released under GPL.

Moodle Forums links

Non Moodle.org links


Moodle core libraries

Moodle's core libraries provide lots of functions for working with the database.

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: