{"action":"created","comment":{"url":"https://api.github.com/repos/docker-library/docs/pulls/comments/27084000","id":27084000,"diff_hunk":"@@ -1,49 +1,113 @@\n+%%LOGO%%\n+\n # What is MySQL?\n \n-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.\n+MySQL is the world's most popular open source database. With its proven performance, reliability and ease-of-use, MySQL has become the leading database choice for web-based applications, covering the entire range from personal projects and websites, via e-commerce and information services, all the way to high profile web properties including Facebook, Twitter, YouTube, Yahoo! and many more.\n \n-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.\n+For more information and related downloads for MySQL Server and other MySQL products, please visit [www.mysql.com](http://www.mysql.com).\n \n-Oracle Corporation and/or affiliates own the copyright and trademark for MySQL.\n+# How to use this image\n \n-> [wikipedia.org/wiki/MySQL](https://en.wikipedia.org/wiki/MySQL)\n+## Start a `%%REPO%%` server instance\n \n-%%LOGO%%\n+Starting a MySQL instance is simple:\n \n-# How to use this image\n+docker run --name some-%%REPO%% -e MYSQL_ROOT_PASSWORD=my-secret-pw -d %%REPO%%:tag\n+\n+... where `some-%%REPO%%` is the name you want to assign to your container, `my-secret-pw` is the password to be set for the MySQL root user and `tag` is the tag specifying the MySQL version you want. See the list above for relevant tags.\n+\n+## Connect to MySQL from an application in another Docker container\n+\n+This image exposes the standard MySQL port (3306), so container linking makes the MySQL instance available to other application containers. Start your application container like this in order to link it to the MySQL container:\n+\n+docker run --name some-app --link some-%%REPO%%:mysql -d app-that-uses-mysql\n+\n+## Connect to MySQL from the MySQL command line client\n+\n+The following command starts another MySQL container instance and runs the `mysql` command line client against your original MySQL container, allowing you to execute SQL statements against your database instance:\n+\n+docker run -it --link some-%%REPO%%:mysql --rm %%REPO%% sh -c 'exec mysql -h\"$MYSQL_PORT_3306_TCP_ADDR\" -P\"$MYSQL_PORT_3306_TCP_PORT\" -uroot -p\"$MYSQL_ENV_MYSQL_ROOT_PASSWORD\"'","path":"mysql/content.md","position":35,"original_position":35,"commit_id":"ada33d0600727d66e20f0ce750684126a74a6f1a","original_commit_id":"ada33d0600727d66e20f0ce750684126a74a6f1a","user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"body":"This should be indented (as a code block).","created_at":"2015-03-24T23:34:21Z","updated_at":"2015-03-24T23:34:21Z","html_url":"https://github.com/docker-library/docs/pull/191#discussion_r27084000","pull_request_url":"https://api.github.com/repos/docker-library/docs/pulls/191","_links":{"self":{"href":"https://api.github.com/repos/docker-library/docs/pulls/comments/27084000"},"html":{"href":"https://github.com/docker-library/docs/pull/191#discussion_r27084000"},"pull_request":{"href":"https://api.github.com/repos/docker-library/docs/pulls/191"}}},"pull_request":{"url":"https://api.github.com/repos/docker-library/docs/pulls/191","id":31670888,"html_url":"https://github.com/docker-library/docs/pull/191","diff_url":"https://github.com/docker-library/docs/pull/191.diff","patch_url":"https://github.com/docker-library/docs/pull/191.patch","issue_url":"https://api.github.com/repos/docker-library/docs/issues/191","number":191,"state":"open","locked":false,"title":"Revise the full contents of the MySQL image doc","user":{"login":"yngves","id":6427676,"avatar_url":"https://avatars.githubusercontent.com/u/6427676?v=3","gravatar_id":"","url":"https://api.github.com/users/yngves","html_url":"https://github.com/yngves","followers_url":"https://api.github.com/users/yngves/followers","following_url":"https://api.github.com/users/yngves/following{/other_user}","gists_url":"https://api.github.com/users/yngves/gists{/gist_id}","starred_url":"https://api.github.com/users/yngves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yngves/subscriptions","organizations_url":"https://api.github.com/users/yngves/orgs","repos_url":"https://api.github.com/users/yngves/repos","events_url":"https://api.github.com/users/yngves/events{/privacy}","received_events_url":"https://api.github.com/users/yngves/received_events","type":"User","site_admin":false},"body":"Here is a proposal for revised doc content for the MySQL images. The style attempts to be a bit more \"hand-holding\" towards novice Docker users, adds advice and tips on some common issues, talks about custom config files and options for data persistence and in general adds pieces of information in those places where the currents doc has holes.","created_at":"2015-03-21T12:57:04Z","updated_at":"2015-03-24T23:34:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f58e7f6fc7f771bb24b44dbc941f65f03ccc0809","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker-library/docs/pulls/191/commits","review_comments_url":"https://api.github.com/repos/docker-library/docs/pulls/191/comments","review_comment_url":"https://api.github.com/repos/docker-library/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker-library/docs/issues/191/comments","statuses_url":"https://api.github.com/repos/docker-library/docs/statuses/ada33d0600727d66e20f0ce750684126a74a6f1a","head":{"label":"yngves:master","ref":"master","sha":"ada33d0600727d66e20f0ce750684126a74a6f1a","user":{"login":"yngves","id":6427676,"avatar_url":"https://avatars.githubusercontent.com/u/6427676?v=3","gravatar_id":"","url":"https://api.github.com/users/yngves","html_url":"https://github.com/yngves","followers_url":"https://api.github.com/users/yngves/followers","following_url":"https://api.github.com/users/yngves/following{/other_user}","gists_url":"https://api.github.com/users/yngves/gists{/gist_id}","starred_url":"https://api.github.com/users/yngves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yngves/subscriptions","organizations_url":"https://api.github.com/users/yngves/orgs","repos_url":"https://api.github.com/users/yngves/repos","events_url":"https://api.github.com/users/yngves/events{/privacy}","received_events_url":"https://api.github.com/users/yngves/received_events","type":"User","site_admin":false},"repo":{"id":32628310,"name":"docs","full_name":"yngves/docs","owner":{"login":"yngves","id":6427676,"avatar_url":"https://avatars.githubusercontent.com/u/6427676?v=3","gravatar_id":"","url":"https://api.github.com/users/yngves","html_url":"https://github.com/yngves","followers_url":"https://api.github.com/users/yngves/followers","following_url":"https://api.github.com/users/yngves/following{/other_user}","gists_url":"https://api.github.com/users/yngves/gists{/gist_id}","starred_url":"https://api.github.com/users/yngves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yngves/subscriptions","organizations_url":"https://api.github.com/users/yngves/orgs","repos_url":"https://api.github.com/users/yngves/repos","events_url":"https://api.github.com/users/yngves/events{/privacy}","received_events_url":"https://api.github.com/users/yngves/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yngves/docs","description":"Documentation for Docker Official Images in docker-library","fork":true,"url":"https://api.github.com/repos/yngves/docs","forks_url":"https://api.github.com/repos/yngves/docs/forks","keys_url":"https://api.github.com/repos/yngves/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yngves/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yngves/docs/teams","hooks_url":"https://api.github.com/repos/yngves/docs/hooks","issue_events_url":"https://api.github.com/repos/yngves/docs/issues/events{/number}","events_url":"https://api.github.com/repos/yngves/docs/events","assignees_url":"https://api.github.com/repos/yngves/docs/assignees{/user}","branches_url":"https://api.github.com/repos/yngves/docs/branches{/branch}","tags_url":"https://api.github.com/repos/yngves/docs/tags","blobs_url":"https://api.github.com/repos/yngves/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yngves/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yngves/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/yngves/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yngves/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/yngves/docs/languages","stargazers_url":"https://api.github.com/repos/yngves/docs/stargazers","contributors_url":"https://api.github.com/repos/yngves/docs/contributors","subscribers_url":"https://api.github.com/repos/yngves/docs/subscribers","subscription_url":"https://api.github.com/repos/yngves/docs/subscription","commits_url":"https://api.github.com/repos/yngves/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/yngves/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/yngves/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/yngves/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/yngves/docs/contents/{+path}","compare_url":"https://api.github.com/repos/yngves/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yngves/docs/merges","archive_url":"https://api.github.com/repos/yngves/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yngves/docs/downloads","issues_url":"https://api.github.com/repos/yngves/docs/issues{/number}","pulls_url":"https://api.github.com/repos/yngves/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/yngves/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/yngves/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yngves/docs/labels{/name}","releases_url":"https://api.github.com/repos/yngves/docs/releases{/id}","created_at":"2015-03-21T10:29:26Z","updated_at":"2015-03-24T08:57:11Z","pushed_at":"2015-03-24T08:57:10Z","git_url":"git://github.com/yngves/docs.git","ssh_url":"git@github.com:yngves/docs.git","clone_url":"https://github.com/yngves/docs.git","svn_url":"https://github.com/yngves/docs","homepage":"","size":4985,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"docker-library:master","ref":"master","sha":"6670d41fa785c9c17c5645b6b4925818b271a7e0","user":{"login":"docker-library","id":7739233,"avatar_url":"https://avatars.githubusercontent.com/u/7739233?v=3","gravatar_id":"","url":"https://api.github.com/users/docker-library","html_url":"https://github.com/docker-library","followers_url":"https://api.github.com/users/docker-library/followers","following_url":"https://api.github.com/users/docker-library/following{/other_user}","gists_url":"https://api.github.com/users/docker-library/gists{/gist_id}","starred_url":"https://api.github.com/users/docker-library/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker-library/subscriptions","organizations_url":"https://api.github.com/users/docker-library/orgs","repos_url":"https://api.github.com/users/docker-library/repos","events_url":"https://api.github.com/users/docker-library/events{/privacy}","received_events_url":"https://api.github.com/users/docker-library/received_events","type":"Organization","site_admin":false},"repo":{"id":22484898,"name":"docs","full_name":"docker-library/docs","owner":{"login":"docker-library","id":7739233,"avatar_url":"https://avatars.githubusercontent.com/u/7739233?v=3","gravatar_id":"","url":"https://api.github.com/users/docker-library","html_url":"https://github.com/docker-library","followers_url":"https://api.github.com/users/docker-library/followers","following_url":"https://api.github.com/users/docker-library/following{/other_user}","gists_url":"https://api.github.com/users/docker-library/gists{/gist_id}","starred_url":"https://api.github.com/users/docker-library/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker-library/subscriptions","organizations_url":"https://api.github.com/users/docker-library/orgs","repos_url":"https://api.github.com/users/docker-library/repos","events_url":"https://api.github.com/users/docker-library/events{/privacy}","received_events_url":"https://api.github.com/users/docker-library/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker-library/docs","description":"Documentation for Docker Official Images in docker-library","fork":false,"url":"https://api.github.com/repos/docker-library/docs","forks_url":"https://api.github.com/repos/docker-library/docs/forks","keys_url":"https://api.github.com/repos/docker-library/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker-library/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker-library/docs/teams","hooks_url":"https://api.github.com/repos/docker-library/docs/hooks","issue_events_url":"https://api.github.com/repos/docker-library/docs/issues/events{/number}","events_url":"https://api.github.com/repos/docker-library/docs/events","assignees_url":"https://api.github.com/repos/docker-library/docs/assignees{/user}","branches_url":"https://api.github.com/repos/docker-library/docs/branches{/branch}","tags_url":"https://api.github.com/repos/docker-library/docs/tags","blobs_url":"https://api.github.com/repos/docker-library/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker-library/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker-library/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker-library/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker-library/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/docker-library/docs/languages","stargazers_url":"https://api.github.com/repos/docker-library/docs/stargazers","contributors_url":"https://api.github.com/repos/docker-library/docs/contributors","subscribers_url":"https://api.github.com/repos/docker-library/docs/subscribers","subscription_url":"https://api.github.com/repos/docker-library/docs/subscription","commits_url":"https://api.github.com/repos/docker-library/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker-library/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker-library/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker-library/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker-library/docs/contents/{+path}","compare_url":"https://api.github.com/repos/docker-library/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker-library/docs/merges","archive_url":"https://api.github.com/repos/docker-library/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker-library/docs/downloads","issues_url":"https://api.github.com/repos/docker-library/docs/issues{/number}","pulls_url":"https://api.github.com/repos/docker-library/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/docker-library/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/docker-library/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker-library/docs/labels{/name}","releases_url":"https://api.github.com/repos/docker-library/docs/releases{/id}","created_at":"2014-07-31T21:02:22Z","updated_at":"2015-03-24T21:07:57Z","pushed_at":"2015-03-24T21:07:57Z","git_url":"git://github.com/docker-library/docs.git","ssh_url":"git@github.com:docker-library/docs.git","clone_url":"https://github.com/docker-library/docs.git","svn_url":"https://github.com/docker-library/docs","homepage":"","size":4985,"stargazers_count":43,"watchers_count":43,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":63,"mirror_url":null,"open_issues_count":21,"forks":63,"open_issues":21,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker-library/docs/pulls/191"},"html":{"href":"https://github.com/docker-library/docs/pull/191"},"issue":{"href":"https://api.github.com/repos/docker-library/docs/issues/191"},"comments":{"href":"https://api.github.com/repos/docker-library/docs/issues/191/comments"},"review_comments":{"href":"https://api.github.com/repos/docker-library/docs/pulls/191/comments"},"review_comment":{"href":"https://api.github.com/repos/docker-library/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker-library/docs/pulls/191/commits"},"statuses":{"href":"https://api.github.com/repos/docker-library/docs/statuses/ada33d0600727d66e20f0ce750684126a74a6f1a"}}}}