drush sql-createfor drush 8x


Create a database.

drush sql-create

  • Options


    sql-create accepts 5 option/s:


    --db-su : Account to use when creating a new database. Optional.

    --db-su-pw : Password for the "db-su" account. Optional.

    --database : The DB connection key if using multiple connections in settings.php.

    --target : The name of a target within the specified database connection. Defaults to 'default'.

    --db-url : A Drupal 6 style database URL.

  • 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:[email protected]/drupal_db"

  • Comments


    comments powered by Disqus