drush sql-create

Create a database.

Drush Command

drush sql-create

Arguments

Aliases

Options

--db-su : Account to use when creating a new database. Optional.
--db-su-pw : Password for the "db-su" account. Optional.
--database : [object Object]
--target : [object Object]
--db-url : [object Object]

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://drupaldbuser:drupaldbpassword@127.0.0.1/drupal_db"