Skip to content

Commit

Permalink
release 5.7.24
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameer Naik committed Jan 13, 2019
1 parent dd750f0 commit b33e19d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

**latest**
**5.7.24**
- update base image to ubuntu:bionic-20181204
- upgrade to mysql-server 5.7.24

Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Automated builds of the image are available on [Dockerhub](https://hub.docker.co
> **Note**: Builds are also available on [Quay.io](https://quay.io/repository/sameersbn/mysql)
```bash
docker pull sameersbn/mysql:5.7.22-1
docker pull sameersbn/mysql:5.7.24
```

Alternately you can build the image yourself.
Expand All @@ -75,13 +75,13 @@ docker build -t sameersbn/mysql github.com/sameersbn/docker-mysql
Run the mysql image

```bash
docker run --name mysql -d sameersbn/mysql:5.7.22-1
docker run --name mysql -d sameersbn/mysql:5.7.24
```

You can access the mysql server as the root user using the following command:

```bash
docker run -it --rm --volumes-from=mysql sameersbn/mysql:5.7.22-1 mysql -uroot
docker run -it --rm --volumes-from=mysql sameersbn/mysql:5.7.24 mysql -uroot
```

# Data Store
Expand All @@ -99,7 +99,7 @@ The updated run command looks like this.

```
docker run --name mysql -d \
-v /opt/mysql/data:/var/lib/mysql sameersbn/mysql:5.7.22-1
-v /opt/mysql/data:/var/lib/mysql sameersbn/mysql:5.7.24
```

This will make sure that the data stored in the database is not lost when the image is stopped and started again.
Expand All @@ -121,22 +121,22 @@ To create a new database specify the database name in the `DB_NAME` variable. Th
```bash
docker run --name mysql -d \
-e 'DB_NAME=dbname' sameersbn/mysql:5.7.22-1
-e 'DB_NAME=dbname' sameersbn/mysql:5.7.24
```
You may also specify a comma separated list of database names in the `DB_NAME` variable. The following command creates two new databases named *dbname1* and *dbname2*

```bash
docker run --name mysql -d \
-e 'DB_NAME=dbname1,dbname2' sameersbn/mysql:5.7.22-1
-e 'DB_NAME=dbname1,dbname2' sameersbn/mysql:5.7.24
```

To create a new user you should specify the `DB_USER` and `DB_PASS` variables.

```bash
docker run --name mysql -d \
-e 'DB_USER=dbuser' -e 'DB_PASS=dbpass' -e 'DB_NAME=dbname' \
sameersbn/mysql:5.7.22-1
sameersbn/mysql:5.7.24
```

The above command will create a user *dbuser* with the password *dbpass* and will also create a database named *dbname*. The *dbuser* user will have full/remote access to the database.
Expand All @@ -152,7 +152,7 @@ By default the new database will be created with the `utf8` character set and `u
docker run --name mysql -d \
-e 'DB_USER=dbuser' -e 'DB_PASS=dbpass' -e 'DB_NAME=dbname' \
-e 'MYSQL_CHARSET=utf8mb4' -e 'MYSQL_COLLATION=utf8_bin' \
sameersbn/mysql:5.7.22-1
sameersbn/mysql:5.7.24
```

# Creating remote user with privileged access
Expand All @@ -162,7 +162,7 @@ To create a remote user with privileged access, you need to specify the `DB_REMO
```bash
docker run --name mysql -d \
-e 'DB_REMOTE_ROOT_NAME=root' -e 'DB_REMOTE_ROOT_PASS=secretpassword' \
sameersbn/mysql:5.7.22-1
sameersbn/mysql:5.7.24
```

Optionally you can specify the `DB_REMOTE_ROOT_HOST` variable to define the address space within which remote access should be permitted. This defaults to `172.17.0.1` and should suffice for most cases.
Expand Down Expand Up @@ -211,11 +211,11 @@ docker stop mysql
- **Step 2**: Update the docker image.

```bash
docker pull sameersbn/mysql:5.7.22-1
docker pull sameersbn/mysql:5.7.24
```

- **Step 3**: Start the image

```bash
docker run --name mysql -d [OPTIONS] sameersbn/mysql:5.7.22-1
docker run --name mysql -d [OPTIONS] sameersbn/mysql:5.7.24
```
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.7.22-1
5.7.24

0 comments on commit b33e19d

Please sign in to comment.