kea-admin tool doesn't support -P argument to specify port for remote mysql connection
Describe the bug
Trying to connect to remote mysql-server providing not standard port:
Checking if there is a database initialized already...
mysql: [Warning] Using a password on the command line interface can be insecure.
Verifying create permissions for kea_dhcp
mysql: [Warning] Using a password on the command line interface can be insecure.
MySQL Version is: 8.0.33
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
Initializing database using script /usr/share/kea/scripts/mysql/dhcpdb_create.mysql
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2003 (HY000): Can't connect to MySQL server on '<my_secret_host>:3306' (111)
Expected behavior I expect to connect to remote mysql-server with specified port
Environment:
- Kea version: 2.2.0
- OS: Ubuntu 20.04
Additional Information I can only connect to mysql-server with not standard port like
root@kea1-test:~# kea-admin db-init mysql -u <my_secret_user> -p <my_secret_password> -n <my_secret_database> -h <my_secret_host> -x --port=3307
But then what is the option for -P|--port?