Try:���ԣ�
mysql -e status|grep 'Server version' MySQL��E��״̬| grep '�������汾'

If that doesn't work then use:���û�й�����Ȼ��ʹ�ã�
mysql -u root -p -e status|grep 'Server version' MySQL��������- P��E��״̬| grep '�������汾'
Provide root password when prompted.�ṩroot������ʾʱ�� Default root password for MySQL is empty string, so just pressing enter when prompted for password will suffice by default.Ĭ��root����MySQL���ǿ��ַ����ֻ�谴��ENTERʱ����ʾ���뽫����Ĭ������¡�

Windows users should simply run: Windows�û���Ӧִ�У�
mysql -e status MySQL��E�͵�λ
or the equivalent with login specified and then look for Server version string in the output to find the version.���ֵ�ĵ�¼ָ���ģ�Ȼ����Ѱ�ҷ������汾���ַ�����ҵ��İ汾��