In PMM1 we had a flag '--create-user' for 'pmm-admin add mysql' command
PMM2 doesn't have this flag working as for now, but it's absence confuses people.
# pmm-admin add mysql ps5726 127.0.0.1:5726 --username=root --password=root --query-source=slowlog --create-user pmm-admin: error: unknown long flag '--create-user', try --help
Proposed solution :
# pmm-admin add mysql ps5726 127.0.0.1:5726 --username=root --password=root --query-source=slowlog --create-user
pmm-admin: error: Unrecognized option. To create a user, see 'https://www.percona.com/doc/percona-monitoring-and-management/2.x/concepts/services-mysql.html#pmm-conf-mysql-user-account-creating'
Note:
- This must not lead to adding Service with root:root credentials, this is no what user expects
- --create-user flag should be not visible on `pmm-admin add mysql --help` command
- Full feature implementation in PMM-4776