Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 638 Bytes

File metadata and controls

23 lines (12 loc) · 638 Bytes

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