Once you connect to MySQL Server and/or switch to a database, and you may use various commands to get information about database environment and your session.
SELECT USER();
SELECT CONNECTION_ID();
SELECT DATABASE();
SELECT VERSION();
SHOW DATABASES;
SHOW VARIABLES WHERE Variable_name = 'port';
SHOW VARIABLES WHERE Variable_name = 'hostname';
All information in one go using 'status' command
status
Want to create exercises like this yourself? Click here.
No hints are availble for this assesment
Answer is not availble for this assesment
Please login to comment
Be the first one to comment!