Quantcast
Channel: MySQL show current connection info - Stack Overflow
Browsing latest articles
Browse All 4 View Live

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 Article



Answer 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 Article

Answer 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 Article

MySQL 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
Browsing latest articles
Browse All 4 View Live




Latest Images