Databases: database structure

Databases: database structure

by Vijayalakshmi raghavan -
Number of replies: 9

I want to know how all the information in the blog is stored in the database. i.e I want to know the fields in the database table for a blog entry. I tried downloading the database structure from http://docs.moodle.org/dev/Database_Schema. But it shows an error.

 I am a newbie. So, please help me!

 

Thanks in advance.

Average of ratings: -
In reply to Vijayalakshmi raghavan

Re: Databases: database structure

by Frank Ralf -
You might find some useful links in the old 1.9 Database FAQ: http://docs.moodle.org/19/en/Database_FAQ
In reply to Frank Ralf

Re: Databases: database structure

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

The attached file I created from an installation of Moodle 2.2. which may help explain the structure and you can see more information for the whole Moodle database system at 

http://www.examulator.com/er/

 

Attachment Blog.png
In reply to Frank Ralf

Re: Databases: database structure

by Vijayalakshmi raghavan -

I am doing a project using moodle. I specifically want to know certain things. In every user's profile, there is an area called "interests". I want to know in which field of which table this information is getting stored. 

Even with the help of documentation, it seems impossible to navigate through the source code and find this out.

Any help will be appreciated!

In reply to Vijayalakshmi raghavan

Re: Databases: database structure

by L Cramer -

I can't speak for newer Moodles, but it looks like in 1.9 that information is stored in mdl_tag, mdl_tag_correlation, and mdl_tag_instance.

In reply to L Cramer

Re: Databases: database structure

by Vijayalakshmi raghavan -

In which table are these fields present??

In reply to Vijayalakshmi raghavan

Re: Databases: database structure

by L Cramer -

Those are the names of the three tables in which the information is distributed.

Although, on second look, maybe everything you need is in mdl_tag.  It gives a userid and the name of the tag.

In reply to L Cramer

Re: Databases: database structure

by Vijayalakshmi raghavan -

Thanks a lot cramer smile How did you find this out? I dont want to trouble everyone incase I need to find out something similar.

In reply to Vijayalakshmi raghavan

Re: Databases: database structure

by L Cramer -

In this case, I thought I had a pretty good chance of just looking at the database tables and guessing.  I knew I had some users who'd set their tags, so I'd recognize the data if I saw it.  I'm afraid that doesn't work for every case, and I may even be wrong in this case, but I'm pretty sure that's what you're looking for.