Answer by Nikhil Agrawal for MySQL show current connection info
If you want to know the port number of your local host on which Mysql is running you can use this query on MySQL Command line client --SHOW VARIABLES WHERE Variable_name = 'port';mysql> SHOW...
View ArticleAnswer by Just a learner for MySQL show current connection info
You can use the status command in MySQL client.mysql> status;--------------mysql Ver 14.14 Distrib 5.5.8, for Win32 (x86)Connection id: 1Current database: testCurrent user: ODBC@localhostSSL: Not in...
View ArticleAnswer by 2ndkauboy for MySQL show current connection info
There are MYSQL functions you can use. Like this one that resolves the user:SELECT USER();This will return something like root@localhost so you get the host and the user.To get the current database run...
View ArticleMySQL show current connection info
I am in a MySQL terminal session but I don't know what server I am connected to, or what database I am connected to. Is there a MySQL command that will tell me the host, port, and username and database...
View Article