{"action":"created","issue":{"url":"https://api.github.com/repos/bitnami/bitnami-docker-mariadb/issues/164","repository_url":"https://api.github.com/repos/bitnami/bitnami-docker-mariadb","labels_url":"https://api.github.com/repos/bitnami/bitnami-docker-mariadb/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/bitnami/bitnami-docker-mariadb/issues/164/comments","events_url":"https://api.github.com/repos/bitnami/bitnami-docker-mariadb/issues/164/events","html_url":"https://github.com/bitnami/bitnami-docker-mariadb/issues/164","id":366176966,"node_id":"MDU6SXNzdWUzNjYxNzY5NjY=","number":164,"title":"Can't name default user database to `default` on replication cluster","user":{"login":"astleychen","id":1880638,"node_id":"MDQ6VXNlcjE4ODA2Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/1880638?v=4","gravatar_id":"","url":"https://api.github.com/users/astleychen","html_url":"https://github.com/astleychen","followers_url":"https://api.github.com/users/astleychen/followers","following_url":"https://api.github.com/users/astleychen/following{/other_user}","gists_url":"https://api.github.com/users/astleychen/gists{/gist_id}","starred_url":"https://api.github.com/users/astleychen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astleychen/subscriptions","organizations_url":"https://api.github.com/users/astleychen/orgs","repos_url":"https://api.github.com/users/astleychen/repos","events_url":"https://api.github.com/users/astleychen/events{/privacy}","received_events_url":"https://api.github.com/users/astleychen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-03T05:04:51Z","updated_at":"2018-10-03T08:08:03Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\nIf you suspect your issue is a bug, please edit your issue description to\r\ninclude the BUG REPORT INFORMATION shown below. If you fail to provide this\r\ninformation within 7 days, we cannot debug your issue and we'll close it. We\r\nwill, however, reopen it if you later provide the information.\r\n-------------------------------\r\n    BUG REPORT INFORMATION\r\n-------------------------------\r\nUse the commands below to provide key information from your environment:\r\nYou do NOT have to include this information if this is a FEATURE REQUEST\r\n-->\r\n\r\n**Description**\r\nWhen using replication cluster of Mariadb, I found that the replication user will not be created on the master node, with which the slave node can't connect to master successfully.\r\n\r\n<!-- Briefly describe the problem you are having in a few paragraphs. -->\r\nSet `MARIADB_DATABASE=default` to master environment variable.\r\n\r\n**Steps to reproduce the issue:**\r\n\r\n1. Run with docker-compose to reproduce\r\n\r\n```yaml\r\nversion: '2'\r\n\r\nservices:\r\n  mariadb-master:\r\n    image: 'bitnami/mariadb:latest'\r\n    ports:\r\n      - '3306'\r\n    volumes:\r\n      - 'mariadb_master_data:/bitnami'\r\n    environment:\r\n      - MARIADB_ROOT_PASSWORD=master_root_password\r\n      - MARIADB_PASSWORD=my_password\r\n      - MARIADB_REPLICATION_PASSWORD=my_repl_password\r\n      - MARIADB_REPLICATION_MODE=master\r\n      - MARIADB_REPLICATION_USER=replicator\r\n      - MARIADB_USER=wordpress\r\n      - MARIADB_DATABASE=default\r\n      #- ALLOW_EMPTY_PASSWORD=true #is recommended only for development.\r\n  mariadb-slave:\r\n    image: 'bitnami/mariadb:latest'\r\n    ports:\r\n      - '3306'\r\n    depends_on:\r\n      - mariadb-master\r\n    environment:\r\n      - MARIADB_REPLICATION_PASSWORD=my_repl_password\r\n      - MARIADB_REPLICATION_MODE=slave\r\n      - MARIADB_REPLICATION_USER=replicator\r\n      - MARIADB_MASTER_HOST=mariadb-master\r\n      - MARIADB_MASTER_PORT_NUMBER=3306\r\n      #- ALLOW_EMPTY_PASSWORD=true #is recommended only for development.\r\n\r\nvolumes:\r\n  mariadb_master_data:\r\n    driver: local\r\n```\r\n\r\n2. Connect to master through mysql client.\r\n3. Query users\r\n```bash\r\nMariaDB [(none)]> select user,host from mysql.user;\r\n```\r\n\r\n**Describe the results you received:**\r\nUser `replicator` was not created.\r\n<!-- What actually happens -->\r\n\r\n**Describe the results you expected:**\r\nUser `replicator` should be created.\r\n<!-- What you expect to happen -->\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\n<!-- Any additional information, configuration or data that might be necessary to reproduce the issue. -->\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bitnami/bitnami-docker-mariadb/issues/comments/426548040","html_url":"https://github.com/bitnami/bitnami-docker-mariadb/issues/164#issuecomment-426548040","issue_url":"https://api.github.com/repos/bitnami/bitnami-docker-mariadb/issues/164","id":426548040,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjU0ODA0MA==","user":{"login":"juan131","id":6740773,"node_id":"MDQ6VXNlcjY3NDA3NzM=","avatar_url":"https://avatars3.githubusercontent.com/u/6740773?v=4","gravatar_id":"","url":"https://api.github.com/users/juan131","html_url":"https://github.com/juan131","followers_url":"https://api.github.com/users/juan131/followers","following_url":"https://api.github.com/users/juan131/following{/other_user}","gists_url":"https://api.github.com/users/juan131/gists{/gist_id}","starred_url":"https://api.github.com/users/juan131/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juan131/subscriptions","organizations_url":"https://api.github.com/users/juan131/orgs","repos_url":"https://api.github.com/users/juan131/repos","events_url":"https://api.github.com/users/juan131/events{/privacy}","received_events_url":"https://api.github.com/users/juan131/received_events","type":"User","site_admin":false},"created_at":"2018-10-03T08:08:03Z","updated_at":"2018-10-03T08:08:03Z","author_association":"CONTRIBUTOR","body":"I just created a PR to fix it and release a new version of MariaDB"}}
{"actor":{"display_login":"juan131"}}