drush sql commands


Drush sql commands for Drush 8.

  • sql-cli


    Open a SQL command-line interface using Drupal's credentials.


    drush sql-cli

    drush sql-cli

  • sql-connect


    A string for connecting to the DB.


    drush sql-connect

    drush sql-connect

  • sql-create


    Create a database.


    drush sql-create

    drush sql-create

  • sql-drop


    Drop all tables in a given database.


    drush sql-drop

    drush sql-drop

  • sql-dump


    Exports the Drupal DB as SQL using mysqldump or equivalent.


    drush sql-dump

    drush sql-dump

  • sql-query


    Execute a query against a database.


    drush sql-query

    drush sql-query

  • sql-sanitize


    Run sanitization operations on the current database.


    drush sql-sanitize

    drush sql-sanitize

  • sql-sync


    Copies the database contents from a source site to a target site. Transfers the database dump via rsync.


    drush sql-sync

    drush sql-sync