Bug #69563 Have slow log report the @@hostname
Submitted: 25 Jun 2013 5:31 Modified: 25 Jun 2013 6:22
Reporter: Shlomi Noach (OCA) Email Updates:
Status: Verified Impact on me:
Category:MySQL Server: Logging Severity:S4 (Feature request)
Version: OS:Any
Assigned to: CPU Architecture:Any
Tags: logging, slow log

[25 Jun 2013 5:31] Shlomi Noach
This is a feature request that the slow query log indicates the @@hostname variable at the slow log header.

Example for desired slow log header:

/home/shlomi/sandboxes/5.5.32/bin/mysqld, Version: 5.5.32-log (MySQL Community Server (GPL)). started with:
Tcp port: 22987  Unix socket: /tmp/mysql_sandbox22987.sock Hostname: mysqlhost01
Time                 Id Command    Argument
# Time: 130624 16:48:43
# User@Host: msandbox[msandbox] @ localhost []
# Query_time: 2.000346  Lock_time: 0.000000 Rows_sent: 1  Rows_examined: 0
SET timestamp=1372081723;
select sleep(2);

How to repeat:
[25 Jun 2013 6:22] MySQL Verification Team

Thank you for a feature request!