How to view the mysql version number: You can directly execute the [mysql -V] command on the command line to view the version number. You can also use the [mysql –help | grep Ver] command to view version-related information.
mysql -u root -p select version();
4. View the version information in status in the mysql command number
mysql -u root -p status;