1- Linux, choose:
2sudo service mysql status
3mysqladmin -u root -p status
4/etc/init.d/mysql status
5
6-- Windows, choose:
7C:\> "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqlshow"
8C:\> "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqlshow" -u root mysql
9C:\> "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqladmin" version status proc
10C:\> "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" test