SlideShare a Scribd company logo
Running SQL Queries on the Moodle
Database
An overview
18 November 2016
Tools available
• Moodle Adminer
• Ad-hoc Database Queries
• Configurable Reports
• PHP MyAdmin
Moodle Adminer
• The ‘work horse’
• SQL in, information out
• Aimed at Admins
• Powerful for large queries
• Slick authoring of queries
• Robust browsing of tables
• So what’s the catch?
Moodle Adminer
Great so I can edit the database directly?
Technically speaking yes…
Moodle Adminer
Installation and set up
The plugin installs like any other Moodle plugin, in the local
folder and can be found at Site Administration > Server
Top Tip: If your Database Server has multiple databases,
consider using moodleuser or similar in your config.php
(create if needed)
Moodle Adminer
Demo
SELECT fullname, shortname FROM mdl_course
ORDER BY fullname ASC
Ad Hoc SQL
Installation and set up
The plugin installs like any other Moodle plugin, in the reports
folder and can be found at Site Administration > Reports
Ad Hoc SQL
• Write once, run many
• Great for delegating running of queries to curriculum
managers
• Not 100% foolproof
• Elegant
• Easy to use
• Timer and Email utilisation
Ad Hoc SQL
Configurable Reports
• Very user friendly
• Elegantly formatted output
• Can be applied at course level as a block
Configurable Reports
Installation and set up
The plugin installs like any other Moodle plugin, in the block
folder and can be added at course level
PHP My Admin
Installation and set up
Installed as a fully fledged application at server level.
Managing the Databases
Dumps
We do this through command line
mysqldump –u root –p –h localhost moodle > dump.sql
-v (verbose mode)
Managing the Databases
Find and Replace
We do this through command line, but the replace tool is also
useful
sed –i
‘s/moodle.westcollegescotland.ac.uk/moodle14.westcollege
scotland.ac.uk/g’ ./dump.sql
(sed is a Linux tool)
Managing the Databases
Managing the Databases
Imports
We do this through command line too
mysql –u root –p –h localhost moodle < dump.sql
-v (verbose mode)

More Related Content

What's hot

On-premise to Microsoft Azure Cloud Migration.
 On-premise to Microsoft Azure Cloud Migration. On-premise to Microsoft Azure Cloud Migration.
On-premise to Microsoft Azure Cloud Migration.
Emtec Inc.
 
Chapter 2 the evolution of nursing science
Chapter 2 the evolution of nursing scienceChapter 2 the evolution of nursing science
Chapter 2 the evolution of nursing science
stanbridge
 
Curriculum Models
Curriculum ModelsCurriculum Models
Curriculum Models
Albert Pagadora
 
RedisConf18 - Lower Latency Graph Queries in Cypher with Redis Graph
RedisConf18 - Lower Latency Graph Queries in Cypher with Redis GraphRedisConf18 - Lower Latency Graph Queries in Cypher with Redis Graph
RedisConf18 - Lower Latency Graph Queries in Cypher with Redis Graph
Redis Labs
 
Principles of teaching 1
Principles of teaching 1Principles of teaching 1
Principles of teaching 1
Leicel Doble
 
vmware_cloud_foundation_on_vxrail_technical_customer_presentation.pptx
vmware_cloud_foundation_on_vxrail_technical_customer_presentation.pptxvmware_cloud_foundation_on_vxrail_technical_customer_presentation.pptx
vmware_cloud_foundation_on_vxrail_technical_customer_presentation.pptx
VitNguyn252054
 
Migrate to Microsoft Azure with Confidence
Migrate to Microsoft Azure with ConfidenceMigrate to Microsoft Azure with Confidence
Migrate to Microsoft Azure with Confidence
David J Rosenthal
 
PPT Azure Firewall vs 3rd Party NVA Comparison v1.0.pptx
PPT Azure Firewall vs 3rd Party NVA Comparison v1.0.pptxPPT Azure Firewall vs 3rd Party NVA Comparison v1.0.pptx
PPT Azure Firewall vs 3rd Party NVA Comparison v1.0.pptx
FadhilMuhammad80
 
Openstack Neutron, interconnections with BGP/MPLS VPNs
Openstack Neutron, interconnections with BGP/MPLS VPNsOpenstack Neutron, interconnections with BGP/MPLS VPNs
Openstack Neutron, interconnections with BGP/MPLS VPNs
Thomas Morin
 
Teaching Competencies
Teaching CompetenciesTeaching Competencies
Teaching Competencies
SuraiaLimbaga
 
Power shell basics day 2
Power shell basics day 2Power shell basics day 2
Power shell basics day 2
Ashish Raj
 
Features of the curriculum
Features of the curriculumFeatures of the curriculum
Features of the curriculum
Ann Rone
 
1. Overview of Distributed Systems
1. Overview of Distributed Systems1. Overview of Distributed Systems
1. Overview of Distributed Systems
Daminda Herath
 
NIST Cloud Computing Standards
NIST Cloud Computing StandardsNIST Cloud Computing Standards
NIST Cloud Computing Standards
GovCloud Network
 
Inter relationships between science, theory, practice and research in nursing...
Inter relationships between science, theory, practice and research in nursing...Inter relationships between science, theory, practice and research in nursing...
Inter relationships between science, theory, practice and research in nursing...
kondasusan
 
Curriculum development
Curriculum developmentCurriculum development
Curriculum development
Cey Gloria
 
Google Cloud Composer
Google Cloud ComposerGoogle Cloud Composer
Google Cloud Composer
Pierre Coste
 
cloud computing 5.pptx
cloud computing 5.pptxcloud computing 5.pptx
cloud computing 5.pptx
Jatin673232
 
Azure web apps
Azure web appsAzure web apps
Azure web apps
Vaibhav Gujral
 
Data Ingestion, Extraction & Parsing on Hadoop
Data Ingestion, Extraction & Parsing on HadoopData Ingestion, Extraction & Parsing on Hadoop
Data Ingestion, Extraction & Parsing on Hadoop
skaluska
 

What's hot (20)

On-premise to Microsoft Azure Cloud Migration.
 On-premise to Microsoft Azure Cloud Migration. On-premise to Microsoft Azure Cloud Migration.
On-premise to Microsoft Azure Cloud Migration.
 
Chapter 2 the evolution of nursing science
Chapter 2 the evolution of nursing scienceChapter 2 the evolution of nursing science
Chapter 2 the evolution of nursing science
 
Curriculum Models
Curriculum ModelsCurriculum Models
Curriculum Models
 
RedisConf18 - Lower Latency Graph Queries in Cypher with Redis Graph
RedisConf18 - Lower Latency Graph Queries in Cypher with Redis GraphRedisConf18 - Lower Latency Graph Queries in Cypher with Redis Graph
RedisConf18 - Lower Latency Graph Queries in Cypher with Redis Graph
 
Principles of teaching 1
Principles of teaching 1Principles of teaching 1
Principles of teaching 1
 
vmware_cloud_foundation_on_vxrail_technical_customer_presentation.pptx
vmware_cloud_foundation_on_vxrail_technical_customer_presentation.pptxvmware_cloud_foundation_on_vxrail_technical_customer_presentation.pptx
vmware_cloud_foundation_on_vxrail_technical_customer_presentation.pptx
 
Migrate to Microsoft Azure with Confidence
Migrate to Microsoft Azure with ConfidenceMigrate to Microsoft Azure with Confidence
Migrate to Microsoft Azure with Confidence
 
PPT Azure Firewall vs 3rd Party NVA Comparison v1.0.pptx
PPT Azure Firewall vs 3rd Party NVA Comparison v1.0.pptxPPT Azure Firewall vs 3rd Party NVA Comparison v1.0.pptx
PPT Azure Firewall vs 3rd Party NVA Comparison v1.0.pptx
 
Openstack Neutron, interconnections with BGP/MPLS VPNs
Openstack Neutron, interconnections with BGP/MPLS VPNsOpenstack Neutron, interconnections with BGP/MPLS VPNs
Openstack Neutron, interconnections with BGP/MPLS VPNs
 
Teaching Competencies
Teaching CompetenciesTeaching Competencies
Teaching Competencies
 
Power shell basics day 2
Power shell basics day 2Power shell basics day 2
Power shell basics day 2
 
Features of the curriculum
Features of the curriculumFeatures of the curriculum
Features of the curriculum
 
1. Overview of Distributed Systems
1. Overview of Distributed Systems1. Overview of Distributed Systems
1. Overview of Distributed Systems
 
NIST Cloud Computing Standards
NIST Cloud Computing StandardsNIST Cloud Computing Standards
NIST Cloud Computing Standards
 
Inter relationships between science, theory, practice and research in nursing...
Inter relationships between science, theory, practice and research in nursing...Inter relationships between science, theory, practice and research in nursing...
Inter relationships between science, theory, practice and research in nursing...
 
Curriculum development
Curriculum developmentCurriculum development
Curriculum development
 
Google Cloud Composer
Google Cloud ComposerGoogle Cloud Composer
Google Cloud Composer
 
cloud computing 5.pptx
cloud computing 5.pptxcloud computing 5.pptx
cloud computing 5.pptx
 
Azure web apps
Azure web appsAzure web apps
Azure web apps
 
Data Ingestion, Extraction & Parsing on Hadoop
Data Ingestion, Extraction & Parsing on HadoopData Ingestion, Extraction & Parsing on Hadoop
Data Ingestion, Extraction & Parsing on Hadoop
 

Viewers also liked

Sql commands
Sql commandsSql commands
Extending Moodle Reporting
Extending Moodle ReportingExtending Moodle Reporting
Extending Moodle Reporting
moorejon
 
Moodlemoot spain 2013. juan leyva & martin dougiamas on moodle mobile (1)
Moodlemoot spain 2013. juan leyva & martin dougiamas on moodle mobile (1)Moodlemoot spain 2013. juan leyva & martin dougiamas on moodle mobile (1)
Moodlemoot spain 2013. juan leyva & martin dougiamas on moodle mobile (1)
Juan Leyva Delgado
 
Sql wksht-7
Sql wksht-7Sql wksht-7
Sql wksht-7
Mukesh Tekwani
 
Creating Moodle Mobile remote themes
Creating Moodle Mobile remote themesCreating Moodle Mobile remote themes
Creating Moodle Mobile remote themes
Juan Leyva Delgado
 
Moodle external database enrolment
Moodle external database enrolmentMoodle external database enrolment
Moodle external database enrolment
Yong Liu
 
Moodlemoot spain 2013. taller, creación de un plugin para moodle mobile
Moodlemoot spain 2013. taller, creación de un plugin para moodle mobileMoodlemoot spain 2013. taller, creación de un plugin para moodle mobile
Moodlemoot spain 2013. taller, creación de un plugin para moodle mobile
Juan Leyva Delgado
 
Sql query performance analysis
Sql query performance analysisSql query performance analysis
Sql query performance analysis
Riteshkiit
 
Learning & Teaching with Animations and Games
Learning & Teaching with Animations and GamesLearning & Teaching with Animations and Games
Learning & Teaching with Animations and Games
College Development Network
 
Still Game to Learn Presentation
Still Game to Learn PresentationStill Game to Learn Presentation
Still Game to Learn Presentation
Douglas Morrison
 
Beyond Simple MCQs
Beyond Simple MCQsBeyond Simple MCQs
Beyond Simple MCQs
Kenji Lamb
 
Gaining Buy-in for ED&I through Digital Badges
Gaining Buy-in for ED&I through Digital BadgesGaining Buy-in for ED&I through Digital Badges
Gaining Buy-in for ED&I through Digital Badges
College Development Network
 
BBC Micro:bit Introduction
BBC Micro:bit IntroductionBBC Micro:bit Introduction
BBC Micro:bit Introduction
College Development Network
 
Tuning and Optimizing U-SQL Queries (SQLPASS 2016)
Tuning and Optimizing U-SQL Queries (SQLPASS 2016)Tuning and Optimizing U-SQL Queries (SQLPASS 2016)
Tuning and Optimizing U-SQL Queries (SQLPASS 2016)
Michael Rys
 
Design and further development of an evidence-based framework for technology-...
Design and further development of an evidence-based framework for technology-...Design and further development of an evidence-based framework for technology-...
Design and further development of an evidence-based framework for technology-...
College Development Network
 
How to Fail Your Research Degree - A Game to Enhance Research Skills
How to Fail Your Research Degree - A Game to Enhance Research SkillsHow to Fail Your Research Degree - A Game to Enhance Research Skills
How to Fail Your Research Degree - A Game to Enhance Research Skills
College Development Network
 
TinCan & Learning Record Stores in Moodle
TinCan & Learning Record Stores in MoodleTinCan & Learning Record Stores in Moodle
TinCan & Learning Record Stores in Moodle
College Development Network
 
Clipper - Enhancing Time-Based Media for Research
Clipper - Enhancing Time-Based Media for ResearchClipper - Enhancing Time-Based Media for Research
Clipper - Enhancing Time-Based Media for Research
College Development Network
 
Technology Update - New College Lanarkshire
Technology Update - New College LanarkshireTechnology Update - New College Lanarkshire
Technology Update - New College Lanarkshire
College Development Network
 
Technology Enhanced Learning @ SERC
Technology Enhanced Learning @ SERCTechnology Enhanced Learning @ SERC
Technology Enhanced Learning @ SERC
College Development Network
 

Viewers also liked (20)

Sql commands
Sql commandsSql commands
Sql commands
 
Extending Moodle Reporting
Extending Moodle ReportingExtending Moodle Reporting
Extending Moodle Reporting
 
Moodlemoot spain 2013. juan leyva & martin dougiamas on moodle mobile (1)
Moodlemoot spain 2013. juan leyva & martin dougiamas on moodle mobile (1)Moodlemoot spain 2013. juan leyva & martin dougiamas on moodle mobile (1)
Moodlemoot spain 2013. juan leyva & martin dougiamas on moodle mobile (1)
 
Sql wksht-7
Sql wksht-7Sql wksht-7
Sql wksht-7
 
Creating Moodle Mobile remote themes
Creating Moodle Mobile remote themesCreating Moodle Mobile remote themes
Creating Moodle Mobile remote themes
 
Moodle external database enrolment
Moodle external database enrolmentMoodle external database enrolment
Moodle external database enrolment
 
Moodlemoot spain 2013. taller, creación de un plugin para moodle mobile
Moodlemoot spain 2013. taller, creación de un plugin para moodle mobileMoodlemoot spain 2013. taller, creación de un plugin para moodle mobile
Moodlemoot spain 2013. taller, creación de un plugin para moodle mobile
 
Sql query performance analysis
Sql query performance analysisSql query performance analysis
Sql query performance analysis
 
Learning & Teaching with Animations and Games
Learning & Teaching with Animations and GamesLearning & Teaching with Animations and Games
Learning & Teaching with Animations and Games
 
Still Game to Learn Presentation
Still Game to Learn PresentationStill Game to Learn Presentation
Still Game to Learn Presentation
 
Beyond Simple MCQs
Beyond Simple MCQsBeyond Simple MCQs
Beyond Simple MCQs
 
Gaining Buy-in for ED&I through Digital Badges
Gaining Buy-in for ED&I through Digital BadgesGaining Buy-in for ED&I through Digital Badges
Gaining Buy-in for ED&I through Digital Badges
 
BBC Micro:bit Introduction
BBC Micro:bit IntroductionBBC Micro:bit Introduction
BBC Micro:bit Introduction
 
Tuning and Optimizing U-SQL Queries (SQLPASS 2016)
Tuning and Optimizing U-SQL Queries (SQLPASS 2016)Tuning and Optimizing U-SQL Queries (SQLPASS 2016)
Tuning and Optimizing U-SQL Queries (SQLPASS 2016)
 
Design and further development of an evidence-based framework for technology-...
Design and further development of an evidence-based framework for technology-...Design and further development of an evidence-based framework for technology-...
Design and further development of an evidence-based framework for technology-...
 
How to Fail Your Research Degree - A Game to Enhance Research Skills
How to Fail Your Research Degree - A Game to Enhance Research SkillsHow to Fail Your Research Degree - A Game to Enhance Research Skills
How to Fail Your Research Degree - A Game to Enhance Research Skills
 
TinCan & Learning Record Stores in Moodle
TinCan & Learning Record Stores in MoodleTinCan & Learning Record Stores in Moodle
TinCan & Learning Record Stores in Moodle
 
Clipper - Enhancing Time-Based Media for Research
Clipper - Enhancing Time-Based Media for ResearchClipper - Enhancing Time-Based Media for Research
Clipper - Enhancing Time-Based Media for Research
 
Technology Update - New College Lanarkshire
Technology Update - New College LanarkshireTechnology Update - New College Lanarkshire
Technology Update - New College Lanarkshire
 
Technology Enhanced Learning @ SERC
Technology Enhanced Learning @ SERCTechnology Enhanced Learning @ SERC
Technology Enhanced Learning @ SERC
 

Similar to Running SQL Queries on the Moodle Database

Moving to moodle 2
Moving to moodle 2Moving to moodle 2
Moving to moodle 2
JISC RSC Eastern
 
Best Practices In Moodle Administration
Best Practices In Moodle AdministrationBest Practices In Moodle Administration
Best Practices In Moodle Administration
moorejon
 
Best practices in Moodle administration Monatana Moot 2014
Best practices in Moodle administration Monatana Moot 2014Best practices in Moodle administration Monatana Moot 2014
Best practices in Moodle administration Monatana Moot 2014
moorejon
 
Ahmedabad MuleSoft Meetup #4
Ahmedabad MuleSoft Meetup #4Ahmedabad MuleSoft Meetup #4
Ahmedabad MuleSoft Meetup #4
Tejas Purohit
 
Cloud Orchestration is Broken
Cloud Orchestration is BrokenCloud Orchestration is Broken
Cloud Orchestration is Broken
Public Broadcasting Service
 
DevOps and Decoys How to Build a Successful Microsoft DevOps Including the Data
DevOps and Decoys  How to Build a Successful Microsoft DevOps Including the DataDevOps and Decoys  How to Build a Successful Microsoft DevOps Including the Data
DevOps and Decoys How to Build a Successful Microsoft DevOps Including the Data
Kellyn Pot'Vin-Gorman
 
Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3
Drupalcon Paris
 
Drupal -Introduction to Drupal
Drupal -Introduction to DrupalDrupal -Introduction to Drupal
Drupal -Introduction to Drupal
Vibrant Technologies & Computers
 
Midwest PHP - Scaling Magento
Midwest PHP - Scaling MagentoMidwest PHP - Scaling Magento
Midwest PHP - Scaling Magento
Mathew Beane
 
Drupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsDrupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal Concepts
Micky Metts
 
PowerShellForDBDevelopers
PowerShellForDBDevelopersPowerShellForDBDevelopers
PowerShellForDBDevelopers
Bryan Cafferky
 
72d5drupal
72d5drupal72d5drupal
72d5drupal
Mahesh Sherkar
 
OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...
OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...
OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...
Frederic Descamps
 
Instant hadoop of your own
Instant hadoop of your ownInstant hadoop of your own
Instant hadoop of your own
Jack (Yaakov) Bezalel
 
Taking your site from Drupal 6 to Drupal 7
Taking your site from Drupal 6 to Drupal 7Taking your site from Drupal 6 to Drupal 7
Taking your site from Drupal 6 to Drupal 7
Phase2
 
Geek Sync | Deployment and Management of Complex Azure Environments
Geek Sync | Deployment and Management of Complex Azure EnvironmentsGeek Sync | Deployment and Management of Complex Azure Environments
Geek Sync | Deployment and Management of Complex Azure Environments
IDERA Software
 
Drupal intro
Drupal introDrupal intro
Drupal intro
Geetanjali Srivastava
 
Drupal intro
Drupal introDrupal intro
Drupal intro
Antonio Perez
 
Movingto moodle2 v1 1
Movingto moodle2 v1 1Movingto moodle2 v1 1
Movingto moodle2 v1 1
Jisc RSC East Midlands
 
Building perfect sql servers, every time -oops
Building perfect sql servers, every time -oopsBuilding perfect sql servers, every time -oops
Building perfect sql servers, every time -oops
Joseph D'Antoni
 

Similar to Running SQL Queries on the Moodle Database (20)

Moving to moodle 2
Moving to moodle 2Moving to moodle 2
Moving to moodle 2
 
Best Practices In Moodle Administration
Best Practices In Moodle AdministrationBest Practices In Moodle Administration
Best Practices In Moodle Administration
 
Best practices in Moodle administration Monatana Moot 2014
Best practices in Moodle administration Monatana Moot 2014Best practices in Moodle administration Monatana Moot 2014
Best practices in Moodle administration Monatana Moot 2014
 
Ahmedabad MuleSoft Meetup #4
Ahmedabad MuleSoft Meetup #4Ahmedabad MuleSoft Meetup #4
Ahmedabad MuleSoft Meetup #4
 
Cloud Orchestration is Broken
Cloud Orchestration is BrokenCloud Orchestration is Broken
Cloud Orchestration is Broken
 
DevOps and Decoys How to Build a Successful Microsoft DevOps Including the Data
DevOps and Decoys  How to Build a Successful Microsoft DevOps Including the DataDevOps and Decoys  How to Build a Successful Microsoft DevOps Including the Data
DevOps and Decoys How to Build a Successful Microsoft DevOps Including the Data
 
Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3
 
Drupal -Introduction to Drupal
Drupal -Introduction to DrupalDrupal -Introduction to Drupal
Drupal -Introduction to Drupal
 
Midwest PHP - Scaling Magento
Midwest PHP - Scaling MagentoMidwest PHP - Scaling Magento
Midwest PHP - Scaling Magento
 
Drupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsDrupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal Concepts
 
PowerShellForDBDevelopers
PowerShellForDBDevelopersPowerShellForDBDevelopers
PowerShellForDBDevelopers
 
72d5drupal
72d5drupal72d5drupal
72d5drupal
 
OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...
OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...
OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...
 
Instant hadoop of your own
Instant hadoop of your ownInstant hadoop of your own
Instant hadoop of your own
 
Taking your site from Drupal 6 to Drupal 7
Taking your site from Drupal 6 to Drupal 7Taking your site from Drupal 6 to Drupal 7
Taking your site from Drupal 6 to Drupal 7
 
Geek Sync | Deployment and Management of Complex Azure Environments
Geek Sync | Deployment and Management of Complex Azure EnvironmentsGeek Sync | Deployment and Management of Complex Azure Environments
Geek Sync | Deployment and Management of Complex Azure Environments
 
Drupal intro
Drupal introDrupal intro
Drupal intro
 
Drupal intro
Drupal introDrupal intro
Drupal intro
 
Movingto moodle2 v1 1
Movingto moodle2 v1 1Movingto moodle2 v1 1
Movingto moodle2 v1 1
 
Building perfect sql servers, every time -oops
Building perfect sql servers, every time -oopsBuilding perfect sql servers, every time -oops
Building perfect sql servers, every time -oops
 

More from College Development Network

Virtual Bridge Sessions: Making Delivery Online Work for Everyone
Virtual Bridge Sessions: Making Delivery Online Work for EveryoneVirtual Bridge Sessions: Making Delivery Online Work for Everyone
Virtual Bridge Sessions: Making Delivery Online Work for Everyone
College Development Network
 
Scottish Moodle User Group (SMUG): Blackboard Ally & Moodle
Scottish Moodle User Group (SMUG): Blackboard Ally & MoodleScottish Moodle User Group (SMUG): Blackboard Ally & Moodle
Scottish Moodle User Group (SMUG): Blackboard Ally & Moodle
College Development Network
 
Scottish Moodle User Group (SMUG): Blackboard Ally & Moodle
Scottish Moodle User Group (SMUG): Blackboard Ally & MoodleScottish Moodle User Group (SMUG): Blackboard Ally & Moodle
Scottish Moodle User Group (SMUG): Blackboard Ally & Moodle
College Development Network
 
Virtual Bridge Sessions: Approaches to Learning and Teaching during Remote De...
Virtual Bridge Sessions: Approaches to Learning and Teaching during Remote De...Virtual Bridge Sessions: Approaches to Learning and Teaching during Remote De...
Virtual Bridge Sessions: Approaches to Learning and Teaching during Remote De...
College Development Network
 
MIS Network Event: Sector Update
MIS Network Event: Sector UpdateMIS Network Event: Sector Update
MIS Network Event: Sector Update
College Development Network
 
MIS Network Event: SFC Update
MIS Network Event: SFC UpdateMIS Network Event: SFC Update
MIS Network Event: SFC Update
College Development Network
 
Digital ID cards at New College Lanarkshire
Digital ID cards at New College LanarkshireDigital ID cards at New College Lanarkshire
Digital ID cards at New College Lanarkshire
College Development Network
 
Virtual Bridge Sessions: Hybrid Delivery - Best of Both Worlds
Virtual Bridge Sessions: Hybrid Delivery - Best of Both WorldsVirtual Bridge Sessions: Hybrid Delivery - Best of Both Worlds
Virtual Bridge Sessions: Hybrid Delivery - Best of Both Worlds
College Development Network
 
Virtual Bridge Sessions: Social Media, Esports and Copyright - Friends or Foes?
Virtual Bridge Sessions: Social Media, Esports and Copyright - Friends or Foes?Virtual Bridge Sessions: Social Media, Esports and Copyright - Friends or Foes?
Virtual Bridge Sessions: Social Media, Esports and Copyright - Friends or Foes?
College Development Network
 
Virtual Bridge Sessions: The National Cyber Security Centre at Your Service
Virtual Bridge Sessions: The National Cyber Security Centre at Your ServiceVirtual Bridge Sessions: The National Cyber Security Centre at Your Service
Virtual Bridge Sessions: The National Cyber Security Centre at Your Service
College Development Network
 
Virtual Bridge Sessions: Managing and Supporting Staff Who Are Delivering Rem...
Virtual Bridge Sessions: Managing and Supporting Staff Who Are Delivering Rem...Virtual Bridge Sessions: Managing and Supporting Staff Who Are Delivering Rem...
Virtual Bridge Sessions: Managing and Supporting Staff Who Are Delivering Rem...
College Development Network
 
Virtual Bridge Sessions: Pedagogy Matters
Virtual Bridge Sessions: Pedagogy MattersVirtual Bridge Sessions: Pedagogy Matters
Virtual Bridge Sessions: Pedagogy Matters
College Development Network
 
Virtual Bridge Sessions: Key Messages from Research on Blended or Digital Lea...
Virtual Bridge Sessions: Key Messages from Research on Blended or Digital Lea...Virtual Bridge Sessions: Key Messages from Research on Blended or Digital Lea...
Virtual Bridge Sessions: Key Messages from Research on Blended or Digital Lea...
College Development Network
 
Virtual Bridge Sessions: Messages from international experiences
Virtual Bridge Sessions: Messages from international experiencesVirtual Bridge Sessions: Messages from international experiences
Virtual Bridge Sessions: Messages from international experiences
College Development Network
 
Public Sector Accessibility Guidelines: What you need to know (and do!)
Public Sector Accessibility Guidelines: What you need to know (and do!)Public Sector Accessibility Guidelines: What you need to know (and do!)
Public Sector Accessibility Guidelines: What you need to know (and do!)
College Development Network
 
Enhancing Performance through Data-led Decision Making
Enhancing Performance through Data-led Decision MakingEnhancing Performance through Data-led Decision Making
Enhancing Performance through Data-led Decision Making
College Development Network
 
FES Update Summary
FES Update SummaryFES Update Summary
FES Update Summary
College Development Network
 
MyDay Portal
MyDay PortalMyDay Portal
Online Enrolment and “Onboarding”
Online Enrolment and “Onboarding”Online Enrolment and “Onboarding”
Online Enrolment and “Onboarding”
College Development Network
 
Post-College Destination Data
Post-College Destination DataPost-College Destination Data
Post-College Destination Data
College Development Network
 

More from College Development Network (20)

Virtual Bridge Sessions: Making Delivery Online Work for Everyone
Virtual Bridge Sessions: Making Delivery Online Work for EveryoneVirtual Bridge Sessions: Making Delivery Online Work for Everyone
Virtual Bridge Sessions: Making Delivery Online Work for Everyone
 
Scottish Moodle User Group (SMUG): Blackboard Ally & Moodle
Scottish Moodle User Group (SMUG): Blackboard Ally & MoodleScottish Moodle User Group (SMUG): Blackboard Ally & Moodle
Scottish Moodle User Group (SMUG): Blackboard Ally & Moodle
 
Scottish Moodle User Group (SMUG): Blackboard Ally & Moodle
Scottish Moodle User Group (SMUG): Blackboard Ally & MoodleScottish Moodle User Group (SMUG): Blackboard Ally & Moodle
Scottish Moodle User Group (SMUG): Blackboard Ally & Moodle
 
Virtual Bridge Sessions: Approaches to Learning and Teaching during Remote De...
Virtual Bridge Sessions: Approaches to Learning and Teaching during Remote De...Virtual Bridge Sessions: Approaches to Learning and Teaching during Remote De...
Virtual Bridge Sessions: Approaches to Learning and Teaching during Remote De...
 
MIS Network Event: Sector Update
MIS Network Event: Sector UpdateMIS Network Event: Sector Update
MIS Network Event: Sector Update
 
MIS Network Event: SFC Update
MIS Network Event: SFC UpdateMIS Network Event: SFC Update
MIS Network Event: SFC Update
 
Digital ID cards at New College Lanarkshire
Digital ID cards at New College LanarkshireDigital ID cards at New College Lanarkshire
Digital ID cards at New College Lanarkshire
 
Virtual Bridge Sessions: Hybrid Delivery - Best of Both Worlds
Virtual Bridge Sessions: Hybrid Delivery - Best of Both WorldsVirtual Bridge Sessions: Hybrid Delivery - Best of Both Worlds
Virtual Bridge Sessions: Hybrid Delivery - Best of Both Worlds
 
Virtual Bridge Sessions: Social Media, Esports and Copyright - Friends or Foes?
Virtual Bridge Sessions: Social Media, Esports and Copyright - Friends or Foes?Virtual Bridge Sessions: Social Media, Esports and Copyright - Friends or Foes?
Virtual Bridge Sessions: Social Media, Esports and Copyright - Friends or Foes?
 
Virtual Bridge Sessions: The National Cyber Security Centre at Your Service
Virtual Bridge Sessions: The National Cyber Security Centre at Your ServiceVirtual Bridge Sessions: The National Cyber Security Centre at Your Service
Virtual Bridge Sessions: The National Cyber Security Centre at Your Service
 
Virtual Bridge Sessions: Managing and Supporting Staff Who Are Delivering Rem...
Virtual Bridge Sessions: Managing and Supporting Staff Who Are Delivering Rem...Virtual Bridge Sessions: Managing and Supporting Staff Who Are Delivering Rem...
Virtual Bridge Sessions: Managing and Supporting Staff Who Are Delivering Rem...
 
Virtual Bridge Sessions: Pedagogy Matters
Virtual Bridge Sessions: Pedagogy MattersVirtual Bridge Sessions: Pedagogy Matters
Virtual Bridge Sessions: Pedagogy Matters
 
Virtual Bridge Sessions: Key Messages from Research on Blended or Digital Lea...
Virtual Bridge Sessions: Key Messages from Research on Blended or Digital Lea...Virtual Bridge Sessions: Key Messages from Research on Blended or Digital Lea...
Virtual Bridge Sessions: Key Messages from Research on Blended or Digital Lea...
 
Virtual Bridge Sessions: Messages from international experiences
Virtual Bridge Sessions: Messages from international experiencesVirtual Bridge Sessions: Messages from international experiences
Virtual Bridge Sessions: Messages from international experiences
 
Public Sector Accessibility Guidelines: What you need to know (and do!)
Public Sector Accessibility Guidelines: What you need to know (and do!)Public Sector Accessibility Guidelines: What you need to know (and do!)
Public Sector Accessibility Guidelines: What you need to know (and do!)
 
Enhancing Performance through Data-led Decision Making
Enhancing Performance through Data-led Decision MakingEnhancing Performance through Data-led Decision Making
Enhancing Performance through Data-led Decision Making
 
FES Update Summary
FES Update SummaryFES Update Summary
FES Update Summary
 
MyDay Portal
MyDay PortalMyDay Portal
MyDay Portal
 
Online Enrolment and “Onboarding”
Online Enrolment and “Onboarding”Online Enrolment and “Onboarding”
Online Enrolment and “Onboarding”
 
Post-College Destination Data
Post-College Destination DataPost-College Destination Data
Post-College Destination Data
 

Recently uploaded

Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 

Recently uploaded (20)

Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 

Running SQL Queries on the Moodle Database

  • 1. Running SQL Queries on the Moodle Database An overview 18 November 2016
  • 2. Tools available • Moodle Adminer • Ad-hoc Database Queries • Configurable Reports • PHP MyAdmin
  • 3. Moodle Adminer • The ‘work horse’ • SQL in, information out • Aimed at Admins • Powerful for large queries • Slick authoring of queries • Robust browsing of tables • So what’s the catch?
  • 4.
  • 5.
  • 6. Moodle Adminer Great so I can edit the database directly? Technically speaking yes…
  • 7. Moodle Adminer Installation and set up The plugin installs like any other Moodle plugin, in the local folder and can be found at Site Administration > Server Top Tip: If your Database Server has multiple databases, consider using moodleuser or similar in your config.php (create if needed)
  • 8. Moodle Adminer Demo SELECT fullname, shortname FROM mdl_course ORDER BY fullname ASC
  • 9. Ad Hoc SQL Installation and set up The plugin installs like any other Moodle plugin, in the reports folder and can be found at Site Administration > Reports
  • 10. Ad Hoc SQL • Write once, run many • Great for delegating running of queries to curriculum managers • Not 100% foolproof • Elegant • Easy to use • Timer and Email utilisation
  • 12. Configurable Reports • Very user friendly • Elegantly formatted output • Can be applied at course level as a block
  • 13. Configurable Reports Installation and set up The plugin installs like any other Moodle plugin, in the block folder and can be added at course level
  • 14. PHP My Admin Installation and set up Installed as a fully fledged application at server level.
  • 15. Managing the Databases Dumps We do this through command line mysqldump –u root –p –h localhost moodle > dump.sql -v (verbose mode)
  • 16. Managing the Databases Find and Replace We do this through command line, but the replace tool is also useful sed –i ‘s/moodle.westcollegescotland.ac.uk/moodle14.westcollege scotland.ac.uk/g’ ./dump.sql (sed is a Linux tool)
  • 18. Managing the Databases Imports We do this through command line too mysql –u root –p –h localhost moodle < dump.sql -v (verbose mode)