Skip to content

Commit 5ab22cd

Browse files
authored
Merge pull request #6485 from robertsilen/main
Document MariaDB support in README
2 parents 57280f7 + acf741f commit 5ab22cd

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,14 @@ and/or customizations to the Solidus admin. Use at your own risk.
214214
bin/setup
215215
```
216216

217-
_Note_: If you're using PostgreSQL or MySQL, you'll need to install those gems through the DB environment variable.
217+
_Note_: If you're using PostgreSQL, MySQL, or MariaDB, you'll need to install those gems through the DB environment variable.
218218

219219
```bash
220220
# PostgreSQL
221221
export DB=postgresql
222222
bin/setup
223223

224-
# MySQL
224+
# MySQL or MariaDB (mysql2 adapter)
225225
export DB=mysql
226226
bin/setup
227227
```
@@ -295,14 +295,14 @@ data already loaded.
295295
bin/sandbox
296296
```
297297

298-
You can create a sandbox with PostgreSQL or MySQL by setting the DB environment variable.
298+
You can create a sandbox with PostgreSQL, MySQL, or MariaDB by setting the DB environment variable.
299299

300300
```bash
301301
# PostgreSQL
302302
export DB=postgresql
303303
bin/sandbox
304304

305-
# MySQL
305+
# MySQL or MariaDB (mysql2 adapter)
306306
export DB=mysql
307307
bin/sandbox
308308
```
@@ -358,13 +358,13 @@ createuser --superuser --echo postgres # only the first time
358358
bin/build
359359
```
360360

361-
The `bin/build` script runs using PostgreSQL by default, but it can be overridden by setting the DB environment variable to `DB=sqlite` or `DB=mysql`. For example:
361+
The `bin/build` script runs using PostgreSQL by default, but it can be overridden by setting the DB environment variable to `DB=sqlite` or `DB=mysql` (MariaDB uses `DB=mysql`). For example:
362362

363363
```bash
364364
env DB=mysql bin/build
365365
```
366366

367-
If the command fails with MySQL related errors you can try creating a user with this command:
367+
If the command fails with MySQL or MariaDB related errors you can try creating a user with this command:
368368

369369
```bash
370370
# Creates a user with the same name as the current user and no restrictions.

0 commit comments

Comments
 (0)