Bug #100222 Connector/C++ doesn't get server information before connecting
Submitted: 15 Jul 2020 6:53 Modified: 24 Sep 2020 13:00
Reporter: Bo Sun Email Updates:
Status: Verified Impact on me:
None 
Category:Connector / C++ Severity:S4 (Feature request)
Version:8.0 OS:Any
Assigned to: CPU Architecture:Any
Tags: Connector/C++

[15 Jul 2020 6:53] Bo Sun
Description:
There seems to be a handshake before the real connecting in connector of other language like Java and Python to retrieve the server information which contains server version and authority plugin name. 
Without this step, connector in C++ has to be configured manually what the default plugin name is.
Not a big deal, but sometimes it's not so convenient and I am curious why it lacks this process.

How to repeat:
Version: Connector/C++ 8.0
Server: MySQL 5.7
Default Authority: mysql_native_password

Try to connect the server with the function connect(host,username,password) and it will give out the access dinied error.

Suggested fix:
Handshake before real connect.
[24 Sep 2020 13:00] MySQL Verification Team
Hi Mr. Sun,

Thank you for your feature request.

I agree with you that this is doable in our Connector/C++.

Verified as reported.
[24 Sep 2020 13:01] MySQL Verification Team
Thank you for your contribution.