Try: Prova:
mysql -e status|grep ‘Server version’ mysql-e status | grep 'Server versione'

If that doesn’t work then use: Se non funziona quindi utilizzare:
mysql -u root -p -e status|grep ‘Server version’ mysql-u root-p-e status | grep 'Server versione'
Provide root password when prompted. Fornire la password di root quando richiesto. Default root password for MySQL is empty string, so just pressing enter when prompted for password will suffice by default. Default password di root per MySQL è stringa vuota, quindi premendo INVIO quando richiesto per la password sarà sufficiente per impostazione predefinita.

Windows users should simply run: Gli utenti Windows devono semplicemente eseguire:
mysql -e status MySQL-e stato
or the equivalent with login specified and then look for Server version string in the output to find the version. o l'equivalente specificato con login e poi cercate Server versione stringa nella produzione di trovare la versione.