The error message explains better when using the --socket option incorrectly.

Description

STR:

  1. Try to add MySQL with specifying socket and port:

    [ec2-user@ip-10-178-2-129 ~]$ pmm-admin add mysql --cluster=pxc --username=root --socket=--socket=/tmp/PXC_NODE_3.sock --port=1722 PXC_3

    Given result:

    both socket and address are passed

    The same error message is returned while using both socket and address

    Expected result:

    Both socket and port cannot be specified

How to test

None

How to document

None

Smart Checklist

Activity

Nailya Kutlubaeva April 22, 2020 at 12:25 PM

re-checked:

[ec2-user@ip-10-178-1-124 ~]$ pmm-admin add mysql NNN2 --socket=/var/lib/mysql/mysql.sock --port=12 Socket and port cannot be specified together.

Nailya Kutlubaeva April 22, 2020 at 9:42 AM

I tried to add MySQL Service with socket and port providing and the service was added successful

[ec2-user@ip-10-178-1-175 ~]$ pmm-admin add mysql --username=root --socket=/var/lib/mysql/mysql.sock --port=6033 mysql MySQL Service added. Service ID : /service_id/3caa9d4e-00ed-4812-a55d-cc4b06ecc7b8 Service name: mysql Table statistics collection enabled (the limit is 1000, the actual table count is 280).
Done

Details

Assignee

Reporter

Priority

Components

Labels

Needs QA

Yes

Fix versions

Story Points

Sprint

Affects versions

Smart Checklist

Created April 6, 2020 at 7:21 AM
Updated March 6, 2024 at 4:40 AM
Resolved May 11, 2020 at 9:42 PM

Flag notifications