Many responses advise using mysql —version. But the client is the MySQL software. Mysqld is the server. The command should therefore be:
On both Windows and Debian, that works for me.
When using a client to connect to a MySQL server, you can utilize:
I hope this helps you.