Drupal 11 · Database and debugging

Run a SQL query

Run a query against the site's database.

vendor/bin/drush sql:query "SELECT name, status FROM users_field_data"

Official Drupal 11 documentation

More database and debugging commands

All database and debugging commands · Drupal 11 cheatsheet

Was this page helpful?