Contributing

How do you create a database in Moodle?

How do you create a database in Moodle?

To create a database using cPanel:

  1. Click on the MySQL Databases icon.
  2. Type moodle in the New Database field and click Create Database.
  3. Type a username and password (not one you use elsewhere) in the respective fields and click Create User.

Which database is best for Moodle?

MySQL
MySQL/MariaDB is mostly one of the most recommended and popular databases to deploy when installing and using Moodle. MySQL is an open source Relational Database Management System which is a client-server database, an ACID compliant, fast, reliable, and easy to use database.

How do I import a database into Moodle?

Location: Settings > Database activity administration > Import in Moodle 2.0 onwards and via the ‘Add entry’ tab in Moodle 1.9. Database activity entries may be imported by uploading a text file. The easiest way to determine the format of the text file is to manually add an entry to the database and then export it.

How many tables can you have in a Moodle database?

200 tables
The Moodle database has around 200 tables, and can be quite daunting at first sight.

How do I create a database activity in Moodle?

How is it set up?

  1. In a course, with the editing turned on, choose ‘Database’ from the activity chooser.
  2. Give it a name and, if needed, a description.
  3. Expand the other sections to define the settings you want, in particular the Entries section.
  4. Click Save and Display.

Is Moodle a database?

The Moodle database comprises many tables (more than 250) because the whole database is an aggregate of the core tables and the tables belonging to each plugin.

How do I optimize my Moodle database?

The overall aim of adjustments to improve performance is to use RAM (cacheing) and to reduce disk-based activity. It is especially important to try to eliminate swap file usage as much as you can. If your system starts swapping, this is a sign that you need more RAM.

How many users can Moodle handle?

Very roughly, worst case, your Moodle site may only handle as few as 10-20 concurrent users per GB of memory. Moodle is a large application and can easily use more that 50MB (sometimes a lot more) of RAM per process.

How do I export a database from Moodle?

Exporting database data

  1. Go to the course homepage.
  2. Find the Database and click its link.
  3. Click the Export tab.
  4. Choose the format you wish to export to: CSV or ODS.
  5. Select the fields you want to export.
  6. Check Include user details to include who submitted each entry.

What data is stored in the database table Moodle?

The database tables are used by Moodle and its plugins for data storage. They are able to be queried for information about users, and their involvement, as well as course and site information. I would estimate that more than half of the data needed for analytics are stored in these database tables.

How do I use database activity in Moodle?

Is Moodle a Database?

How do I access the Moodle data manipulation API?

The data manipulation API is exposed via public methods of the $DB object. Moodle core takes care of setting up the connection to the database according to values specified in the main config.php file. The $DB global object is an instance of the moodle_database class.

What happens if a user does not currently exist in Moodle?

If the user does not currently exist in Moodle a new account will be created and their information copied from the external database. This is done by mapping fields at the bottom of the database authentication page. Each data field in the user profile has a text field next to it.

How do I check if a password is valid in Moodle?

Location: Site administration > Plugins > Authentication > External database This method uses an external database table to check whether a given username (which must be varchar) and password is valid. If the user does not currently exist in Moodle a new account will be created and their information copied from the external database.

What is unlocked in Moodle?

Unlocked – A user can make changes locally in the Moodle field (assumably even if it contradicts the external database the next login would change it again if Update Local is set