You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+13-13
Original file line number
Diff line number
Diff line change
@@ -43,15 +43,15 @@ docker run -it --rm joseluisq/alpine-mysql-client mysql --version
43
43
44
44
- Default user (unprivileged) is `mysql`.
45
45
-`mysql` home directory is located at `/home/mysql`.
46
-
- If you want a full privileged user try `root`. E.g append a `--user root` argument to `docker run`.
46
+
- If you want a fully privileged user try `root`. E.g append a `--user root` argument to `docker run`.
47
47
48
48
## Additional Tools
49
49
50
50
This image comes with some additional tools.
51
51
52
52
### Exporter
53
53
54
-
`mysql_exporter` is a custom tool which exports a database script using `mysqldump`. Additionally it support gzip compression.
54
+
`mysql_exporter` is a custom tool that exports a database script using `mysqldump`. Additionally it supports gzip compression.
55
55
It can be configured via environment variables or using `.env` file.
56
56
57
57
#### Setup via environment variables
@@ -81,15 +81,15 @@ DB_ARGS=
81
81
82
82
**Notes:**
83
83
84
-
-`DB_EXPORT_GZIP=true`: Compress the sql file using Gzip (optional). If `false` or not defined then the exported file will be a `.sql` file.
85
-
-`DB_ARGS`: can be used in order to pass more `mysqldump` arguments (optional).
86
-
-An`.env` example file can be found at [./mysql_exporter.env](./mysql_exporter.env)
84
+
-`DB_EXPORT_GZIP=true`: Compress the SQL file using Gzip (optional). If `false` or not defined then the exported file will be a `.sql` file.
85
+
-`DB_ARGS`: can be used to pass more `mysqldump` arguments (optional).
86
+
-A`.env` example file can be found at [./mysql_exporter.env](./mysql_exporter.env)
87
87
88
88
#### Export a database using a Docker container
89
89
90
-
The following Docker commands create a container in order to export a database and then remove such container automatically.
90
+
The following Docker commands create a container to export a database and then remove such container automatically.
91
91
92
-
**Note:**`mysql_exporter` supports enviroment variables or a `.env` file passed as argument.
92
+
**Note:**`mysql_exporter` supports environment variables or a `.env` file passed as an argument.
93
93
94
94
```sh
95
95
docker run --rm -it \
@@ -112,9 +112,9 @@ __Notes:__
112
112
113
113
-`--volume $PWD:/home/mysql/sample` specificy a [bind mount directory](https://docs.docker.com/storage/bind-mounts/) from host to container.
114
114
-`$PWD` is just my host working directory. Use your own path.
115
-
-`/home/mysql/` is default home directory user (optional). View [User privileges](#user-privileges) section above.
115
+
-`/home/mysql/` is the default home directory user (optional). View [User privileges](#user-privileges) section above.
116
116
-`/home/mysql/sample` is a container directory that Docker will create for us.
117
-
-`--workdir /home/mysql/sample`specificy the working directory used by default inside the container.
117
+
-`--workdir /home/mysql/sample`specificies the working directory used by default inside the container.
118
118
-`production.env` is a custom env file path with the corresponding environment variables passed as argument. That file shoud available in your host working directory. E.g `$PWD` in my case.
119
119
120
120
#### Export a database using a Docker Compose file
@@ -166,9 +166,9 @@ DB_ARGS=
166
166
167
167
#### Import a SQL script via a Docker container
168
168
169
-
The following Docker commands create a container in order to import a SQL script file to an specific database and removing the container afterwards.
169
+
The following Docker commands create a container to import a SQL script file to a specific database and remove the container afterward.
170
170
171
-
**Note:**`mysql_importer` supports enviroment variables or a `.env` file passed as argument.
171
+
**Note:**`mysql_importer` supports environment variables or a `.env` file passed as an argument.
172
172
173
173
```sh
174
174
docker run --rm -it \
@@ -188,10 +188,10 @@ docker run --rm -it \
188
188
189
189
## Contributions
190
190
191
-
Feel free to send a [pull request](https://github.com/joseluisq/alpine-mysql-client/pulls) or file some [issue](https://github.com/joseluisq/alpine-mysql-client/issues).
191
+
Feel free to send a [pull request](https://github.com/joseluisq/alpine-mysql-client/pulls) or file some [issues](https://github.com/joseluisq/alpine-mysql-client/issues).
0 commit comments