Answers.Body: <p>If you start by configuring the separate database in civicrm_settings.php before enabling the module, the database tables will be created in the seperate database.</p>
  <p>If you already have half installed CiviCRM, like me, with the drupal module installed but not the database then cv is your answer. CV allows you to specify the database connection string</p>
  <pre><code>cv core:install --cms-base-url=https://www.doinggood.org/ --db mysql://doinggood_crm:pass@localhost/doinggood_user
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-24T15:24:24.333Z
Answers.Text: I tried configuring civicrm_settings.php but the changes were overwritten when the D9 install ran.
  
  hmm.
Answers.UserDisplayName: Dave S
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-22T23:08:09.967Z
Answers.LastActivityDate: 2023-04-23T23:43:19.107Z
Answers.LastEditDate: 2023-04-23T23:43:19.107Z
Answers.UserDisplayName: Interlated
Body: <p>This question was asked regarding wordpress but is also an issue for D9.  When installing from the extend page in Drupal, there is no option to specify the schema for Civi, so all the tables end up mixed with Drupal.  The solution of manually moving the tables and editing civicrm_settings.php seems hackish.</p>
  <p>Did I just miss the configuration step for this?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-04-22T15:57:56.410Z
Comments.Text: Is using `cv` an option for you? It's more flexible. See https://docs.civicrm.org/installation/en/latest/general/cli-cv/
Comments.UserDisplayName: Demerit
Tags: <installation>
Title: How to specify database on D9 installation
ThreadText: # How to specify database on D9 installation
  
  (Asked by: username_0 on 2023-04-21)
  
  This question was asked regarding wordpress but is also an issue for D9. When installing from the extend page in Drupal, there is no option to specify the schema for Civi, so all the tables end up mixed with Drupal. The solution of manually moving the tables and editing civicrm\_settings.php seems hackish.
  
  Did I just miss the configuration step for this?
  
  **Tags:** installation
  
  > **Comments:**
  > **username_1**: Is using `cv` an option for you? It's more flexible. See https://docs.civicrm.org/installation/en/latest/general/cli-cv/  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-04-22. Score: 1
  
  If you start by configuring the separate database in civicrm\_settings.php before enabling the module, the database tables will be created in the seperate database.
  
  If you already have half installed CiviCRM, like me, with the drupal module installed but not the database then cv is your answer. CV allows you to specify the database connection string
  
  ```
  cv core:install --cms-base-url=https://www.doinggood.org/ --db mysql://doinggood_crm:pass@localhost/doinggood_user
  
  ```
  
  > **Comments:**
  > **username_0**: I tried configuring civicrm_settings.php but the changes were overwritten when the D9 install ran.  hmm.  
  
  ---
  
  