Skip to content

Latest commit

 

History

History
 
 

general-log

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Enable and show MySQL/MariaDB GENERAL_LOG (ddev general_log)

This custom ddev command shows all database queries.

It activates the MySQL/MariaDB general_log temporarily and de-activates it when it exits.

Usage

  • Run ddev general_log
  • In order to exit, press CTRL+C.

Example

After running ddev general_log you would see all executed database queries:

dump-db

Installation

Copy the file general_log into your project's .ddev/commands/db.

Contributed by @jonaseberle