Show Database
Use database
show tables
Describe <table>
All good and well, but is it possible to show the current connections host.
Not connection_id, but the IP Address or Name of the host.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To get current host name :-
To get hosts for all incoming requests :-
Based on your last comment,
I don’t think you can resolve IP for the hostname using pure mysql function,
as it require a network lookup, which could be taking long time.
However, mysql document mention this :-
docs :- http://dev.mysql.com/doc/refman/5.0/en/resolveip.html