how to see if mysql local server is running code example

Example: how to check if mysql server is running

- Linux, choose:
sudo service mysql status
mysqladmin -u root -p status
/etc/init.d/mysql status

-- Windows, choose:
C:\> "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqlshow"
C:\> "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqlshow" -u root mysql
C:\> "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqladmin" version status proc
C:\> "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" test

Tags:

Sql Example