diff --git a/README.md b/README.md
index 69b4b60..da5ec13 100644
--- a/README.md
+++ b/README.md
@@ -5,9 +5,9 @@
-A zero-config local MySQL instance for local development (using Docker) so you can finally stop doing things like:
+A zero-config local mariadb instance for local development (using Docker) so you can finally stop doing things like:
-- Using different databases for dev and prod environments (e.g. SQLite vs MySQL/MariaDB)
+- Using different databases for dev and prod environments (e.g. SQLite vs mariadb/MariaDB)
- Installing a local database server directly on your machine
- Spending time getting up and running in a new development environment
@@ -16,11 +16,11 @@ A zero-config local MySQL instance for local development (using Docker) so you c
While this tool is designed to be installed as a dependency in your projects, it actually runs as a single database server.
This makes it possible to optimize resources when working on multiple projects at the same time.
-Feel free to install this tool as a dependency in any project where you need a MySQL/MariaDB database, CLI commands will act on the same instance and all your databases will share the same storage volume.
+Feel free to install this tool as a dependency in any project where you need a mariadb/MariaDB database, CLI commands will act on the same instance and all your databases will share the same storage volume.
## Features
-- Runs a fully-featured MySQL server without touching your local system
+- Runs a fully-featured mariadb server without touching your local system
- Runs a PhpMyAdmin instance attached to the DB server so you can manage your databases with no additional software
- Provides you with a simple set of CLI commands do run common tasks:
- Create/drop databases and dedicated users
@@ -59,7 +59,7 @@ Run the `ldd` binary to see the available commands:
$ yarn ldd --help
Usage: ldd [options] [command]
-A zero-config local MySQL instance for local development (using Docker)
+A zero-config local mariadb instance for local development (using Docker)
Options:
-V, --version output the version number
@@ -95,7 +95,7 @@ Username: my-awesome-app
Password: my-awesome-app-pwd
```
-Our main focus is DX and speed, so don't expect any fancy configuration options or proper security. You can connect to the new database with simple default auth: `mysql://my-awesome-app:my-awesome-app-pwd@127.0.0.1:3306/my-awesome-app`.
+Our main focus is DX and speed, so don't expect any fancy configuration options or proper security. You can connect to the new database with simple default auth: `mariadb://my-awesome-app:my-awesome-app-pwd@127.0.0.1:3306/my-awesome-app`.
You can also connect to http://127.0.0.1:8010 to access a PhpMyAdmin instance attached to your server.
@@ -141,15 +141,15 @@ We hope you never have to use them, but just in case, here are some ENV vars you
#### Server behavior
-- `LDD_SQL_MODE` (default: `"ANSI,ONLY_FULL_GROUP_BY,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,STRICT_ALL_TABLES,ALLOW_INVALID_DATES"`): The SQL mode to use for the MySQL server.
+- `LDD_SQL_MODE` (default: `"ANSI,ONLY_FULL_GROUP_BY,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,STRICT_ALL_TABLES,ALLOW_INVALID_DATES"`): The SQL mode to use for the mariadb server.
- `LDD_SQL_REQUIRE_PRIMARY_KEY` (default: `OFF`): Whether to require primary keys to be defined for each table.
-- `LDD_DEFAULT_STORAGE_ENGINE` (default: `InnoDB`): The default storage engine to use for the MySQL server.
+- `LDD_DEFAULT_STORAGE_ENGINE` (default: `InnoDB`): The default storage engine to use for the mariadb server.
- `LDD_EXPLICIT_DEFAULTS_FOR_TIMESTAMP` (default: `ON`): Whether to use explicit defaults for timestamp columns.
-- `LDD_MYSQL_NATIVE_PASSWORD` (default: `ON`): Whether to enable the native MySQL password hashing algorithm.
+- `LDD_mariadb_NATIVE_PASSWORD` (default: `ON`): Whether to enable the native mariadb password hashing algorithm.
#### Advanced customization
-- `LDD_DB_IMAGE_TAG` (default: `lts`): we use the official [MySQL](https://hub.docker.com/_/mysql) Docker image. You can pick a different tag if you wish.
+- `LDD_DB_IMAGE_TAG` (default: `lts`): we use the official [mariadb](https://hub.docker.com/_/mariadb) Docker image. You can pick a different tag if you wish.
- `LDD_DB_PORT` (default: `3306`): The database server will be attached to this port on your local machine. You can customize this to avoid any conflicts with other services.
- `LDD_DB_ROOT_PASSWORD` (default: `not-secure-pwd`): This tool is not secure by design, so you should probably leave this untouched to avoid issues.
- `LDD_PMA_IMAGE_TAG` (default: `latest`): we use the official [PhpMyAdmin](https://hub.docker.com/_/phpmyadmin) Docker image. You can pick a different tag if you wish.
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index 2a9990b..400d279 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -2,7 +2,7 @@ version: '3'
services:
db:
- image: 'mysql:${LDD_DB_IMAGE_TAG:-lts}'
+ image: 'mariadb:${LDD_DB_IMAGE_TAG:-latest}'
ports:
- '${LDD_DB_PORT:-3306}:3306'
command: >
diff --git a/package.json b/package.json
index 054fb8b..9b8e412 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,8 @@
"local",
"database",
"db",
- "mysql"
+ "mysql",
+ "mariadb"
],
"repository": {
"type": "git",
@@ -44,4 +45,4 @@
"docker-cli-js": "^2.10.0",
"mysql2": "^3.14.0"
}
-}
\ No newline at end of file
+}