hariprasadraja
10/9/2019 - 11:26 AM

sql read variable

SHOW VARIABLES WHERE Variable_name = 'hostname'

-- 'hostname' shows the system hostname 
-- 'port' shows the port number 
-- refer: https://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html