select VARIABLE_NAME , VARIABLE_VALUE from GLOBAL_variables where variable_name like 'hostname';
Select SUBSTRING_INDEX(host,':',1) as 'ip' From information_schema.processlist WHERE ID=connection_id();
Mark This Response as Answer -- Chandu http://www.dotnetfunda.com/images/dnfmvp.gif
Mark as Answer if its helpful to you Kumaraspcode2009@gmail.com
Login to post response