Skip to content

Commit

Permalink
feat #7: adds info to enable manually MySQL/MariaDB.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Peruzzo committed Apr 19, 2023
1 parent 3688e1f commit 0a6b703
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ddev get robertoperuzzo/ddev-sqlsrv
ddev restart
```

If your project you already has a `.ddev/.env` file, you need to add the following lines to it:
If your project already has a `.ddev/.env` file, you need to add the following lines to it:

```dotenv
MSSQL_EXTERNAL_PORT=1433
Expand Down Expand Up @@ -53,22 +53,14 @@ ddev composer require drupal/sqlsrv
**There is an open issue for Drupal 9.4+ installations. Until merged, you need to apply [patch #4](https://www.drupal.org/project/sqlsrv/issues/3291199#comment-14576456), see [Call to a member function fetchField() on null
](https://www.drupal.org/project/sqlsrv/issues/3291199)**

## Disabling MySQL & MariaSQL
## Manually enabling MySQL/MariaDB

* If your project only uses a SQL Server database, you can disable the MySql & MariaDb services.
* Run the following command from your project root.
**This addons disables the default database by automatically adding `omit_containers: [db,dba]` in the `config.sqlsrv.yaml`**

```bash
ddev config --omit-containers db
```

* Alternatively, you can update your project's `.ddev/config.yaml` directly by updating the following line:

```yaml
omit_containers: [db]
```
If your project needs to use both MariaDB and MS SQL Server databases, you have to remove `#ddev-generated` and
`omit_containers: [db,dba]` from `config.sqlsrv.yaml`.

* See [.ddev/config.yaml Options](https://ddev.readthedocs.io/en/stable/users/extend/config_yaml/) for additional notes.
See [.ddev/config.yaml Options](https://ddev.readthedocs.io/en/stable/users/extend/config_yaml/) for additional notes.

## Links with useful information

Expand Down

0 comments on commit 0a6b703

Please sign in to comment.