To get current connections in mysql use any following command after logging into mysql from command line.
First login in into mysql:
$ mysql -u root -p'mySqlPassowrd'
Now enter any of following command:
To view only number of live connections:
mysql> SHOW STATUS WHERE `variable_name` = 'Threads_connected';
To view quick summery of all mysql details including live connections:
To view all live connections details:
mysql> show processlist;