MySQL Forums
Forum List  »  Connector/JDBC and Java

Re: MySQL-Connector
Posted by: Filipe Silva
Date: October 11, 2016 04:44PM

Yes, you should be able to see this information in the table 'performance_schema.session_connect_attrs'. But, until Bug#79612 isn't fixed, it won't work unless you provide a database in the connection string.

The table 'performance_schema.session_connect_attrs' exists in MySQL 5.6 and above. For older servers you won't be able to identify the connecting client.

Also mind that only Connector/J 5.1.25 and above send the required information to the server, so, don't expect to get it for older connectors. Connector/J 5.0.4, from your example, definitely won't work. Anyway, if you are still using this version I sincerely recommend you to upgrade.

IHTH

Options: ReplyQuote


Subject
Written By
Posted
September 20, 2016 07:34AM
September 20, 2016 10:20AM
September 20, 2016 11:47PM
Re: MySQL-Connector
October 11, 2016 04:44PM
October 21, 2016 01:07AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.