drush sql:createfor drush 9x

Create a database.

drush sql:create

  • Aliases

    sql:create has 1 alias/es:

    drush sql-create

  • Options

    sql:create accepts 8 option/s:


    --db-su : db-su


    --db-su-pw : db-su-pw


    --database : database


    --target : target


    --db-url : db-url


    --notify : notify


    --druplicon : druplicon


    --xh-link : xh-link

  • Examples

    Create the database for the current site.

    drush sql:create

    Create the database as specified for @site.test.

    drush @site.test sql-create

    Create the database as specified in the db-url option.

    drush sql:create --db-su=root --db-su-pw=rootpassword --db-url="mysql://drupal_db_user:drupal_db_password@"

  • Comments

    comments powered by Disqus