{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/mariadb/issues/32","labels_url":"https://api.github.com/repos/docker-library/mariadb/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/mariadb/issues/32/comments","events_url":"https://api.github.com/repos/docker-library/mariadb/issues/32/events","html_url":"https://github.com/docker-library/mariadb/pull/32","id":119563328,"number":32,"title":"Add root user for localhost","user":{"login":"wapolinar","id":3637190,"avatar_url":"https://avatars.githubusercontent.com/u/3637190?v=3","gravatar_id":"","url":"https://api.github.com/users/wapolinar","html_url":"https://github.com/wapolinar","followers_url":"https://api.github.com/users/wapolinar/followers","following_url":"https://api.github.com/users/wapolinar/following{/other_user}","gists_url":"https://api.github.com/users/wapolinar/gists{/gist_id}","starred_url":"https://api.github.com/users/wapolinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wapolinar/subscriptions","organizations_url":"https://api.github.com/users/wapolinar/orgs","repos_url":"https://api.github.com/users/wapolinar/repos","events_url":"https://api.github.com/users/wapolinar/events{/privacy}","received_events_url":"https://api.github.com/users/wapolinar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T19:32:37Z","updated_at":"2015-12-05T00:12:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker-library/mariadb/pulls/32","html_url":"https://github.com/docker-library/mariadb/pull/32","diff_url":"https://github.com/docker-library/mariadb/pull/32.diff","patch_url":"https://github.com/docker-library/mariadb/pull/32.patch"},"body":"Grant all privileges to the root user for localhost.\r\n\r\nThis allows to execute mysql_secure_installation and remove remote\r\naccess from the root user while still being able to access the database\r\nfrom localhost."},"comment":{"url":"https://api.github.com/repos/docker-library/mariadb/issues/comments/162115392","html_url":"https://github.com/docker-library/mariadb/pull/32#issuecomment-162115392","issue_url":"https://api.github.com/repos/docker-library/mariadb/issues/32","id":162115392,"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},"created_at":"2015-12-05T00:12:46Z","updated_at":"2015-12-05T00:12:46Z","body":"Why not instead do something like this as an initialization script? (something like `/docker-entrypoint-initdb.d/localhost-root.sql`)\r\n\r\n```sql\r\nUPDATE mysql.user SET host = 'localhost' WHERE user = 'root' AND host = '%' ;\r\nFLUSH PRIVILEGES ;\r\n```"}}