Bug #93916 Contribution: Add system_user as connection attribute in mysql client
Submitted: 14 Jan 13:18 Modified: 8 Mar 15:33
Reporter: OCA Admin (OCA) Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[14 Jan 13:18] OCA Admin
This bug tracks a contribution by Daniël van Eeden (Github user: dveeden) as described in http://github.com/mysql/mysql-server/pull/240

How to repeat:
See description

Suggested fix:
See contribution code attached
[14 Jan 13:18] OCA Admin
Contribution submitted via Github - Add system_user as connection attribute in mysql client 
(*) Contribution by Daniël van Eeden (Github dveeden, mysql-server/pull/240#issuecomment-453996697): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: git_patch_244403142.txt (text/plain), 1.15 KiB.

[14 Jan 13:47] Miguel Solorzano
Thank you for contribution.
[8 Mar 15:33] Paul Dubois
Posted by developer:
Fixed in 8.0.17.

The mysql client program now sends os_user and os_sudouser connection attributes, when available, to indicate the name of the operating system user running the program and the value of the SUDO_USER environment variable, respectively. For general information about connection attributes, see Performance Schema Connection Attribute Tables. Thanks to Daniël van Eeden for the contribution on which this feature was based.