From 5b6f68bb73187f7b62c734f73c22b54145a8d941 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 9 Sep 2014 11:06:08 -0600 Subject: [PATCH] Tweak MySQL in minor ways for consistency --- mysql/README-content.md | 6 +++++- mysql/README.md | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mysql/README-content.md b/mysql/README-content.md index bd6f7c1d7..61c7df087 100644 --- a/mysql/README-content.md +++ b/mysql/README-content.md @@ -1,4 +1,5 @@ -# MySQL +# What is MySQL? + MySQL is (as of March 2014) the world's second most widely used open-source relational database management system (RDBMS). It is named after co-founder Michael Widenius's daughter, My. The SQL phrase stands for Structured Query Language. MySQL is a popular choice of database for use in web applications, and is a central component of the widely used LAMP open source web application software stack (and other 'AMP' stacks). LAMP is an acronym for "Linux, Apache, MySQL, Perl/PHP/Python." Free-software-open source projects that require a full-featured database management system often use MySQL. @@ -8,12 +9,15 @@ MySQL is a popular choice of database for use in web applications, and is a cent # How to use this image ## start a mysql instance + docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=mysecretpassword -d mysql This image includes `EXPOSE 3306` (the mysql port), so standard container linking will make it automatically available to the linked containers (as the following examples illustrate). ## connect to it from an application + docker run --name some-app --link some-mysql:mysql -d application-that-uses-mysql ## ... or via `mysql` + docker run -it --link some-mysql:mysql --rm mysql sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD"' diff --git a/mysql/README.md b/mysql/README.md index 87023d5e1..c2ad915a5 100644 --- a/mysql/README.md +++ b/mysql/README.md @@ -1,4 +1,5 @@ -# MySQL +# What is MySQL? + MySQL is (as of March 2014) the world's second most widely used open-source relational database management system (RDBMS). It is named after co-founder Michael Widenius's daughter, My. The SQL phrase stands for Structured Query Language. MySQL is a popular choice of database for use in web applications, and is a central component of the widely used LAMP open source web application software stack (and other 'AMP' stacks). LAMP is an acronym for "Linux, Apache, MySQL, Perl/PHP/Python." Free-software-open source projects that require a full-featured database management system often use MySQL. @@ -8,14 +9,17 @@ MySQL is a popular choice of database for use in web applications, and is a cent # How to use this image ## start a mysql instance + docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=mysecretpassword -d mysql This image includes `EXPOSE 3306` (the mysql port), so standard container linking will make it automatically available to the linked containers (as the following examples illustrate). ## connect to it from an application + docker run --name some-app --link some-mysql:mysql -d application-that-uses-mysql ## ... or via `mysql` + docker run -it --link some-mysql:mysql --rm mysql sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD"' # User Feedback