This Windows command lists running services whose displayed names match the filter. No match does not by itself prove MySQL is stopped; service names can differ.
Is the client installed?Running
mysql --version reports the client version if the executable is available. It does not prove that a server is installed or running. A command-not-found error can also mean the client is not on PATH.
Does the intended server answer?With the MySQL client tools installed, replace DB_HOST, DB_PORT and DB_USER with your intended TCP endpoint and an authorized account. Keep the required TLS options for your environment; enter the password at the prompt, not on the command line.
mysqladmin --protocol=TCP -h DB_HOST -P DB_PORT -u DB_USER -p pingmysqld is alive indicates that the server answered. Even an
Access denied response can produce exit status 0 from mysqladmin ping: the server answered, but authentication was rejected. A connection error requires checking the endpoint and connection path, not an automatic restart.
Can you authenticate and execute SQL?mysql --protocol=TCP -h DB_HOST -P DB_PORT -u DB_USER -p --execute="SELECT 1;"A successful result containing
1 confirms that this connection authenticated and executed a constant query at that moment. It does not test application-table access, writes, replication, or workload performance. These examples test TCP, not a Unix socket connection. See the
mysqladmin manual for the ping behavior.