what is mysql hostname

Solutions on MaxInterview for what is mysql hostname by the best coders in the world

showing results for - "what is mysql hostname"
Gabriella
31 Jul 2016
1If you're already logged into the command line client try this:
2
3mysql> select user();
4It will output something similar to this:
5
6+----------------+
7| user()         |
8+----------------+
9| root@localhost |
10+----------------+
111 row in set (0.41 sec)
12In my example above, I was logged in as root from localhost.
13
14To find port number and other interesting settings use this command:
15
16mysql> show variables;