Method 1: In the cmd command state: mysql --help and press Enter
Method 2: Log in Which version is used here depends on which service is yours, so when checking the mysql version, pay attention to which service is started
Method 3: Combined with service startup to view If the service startup is 5.7, the configuration here is 8.0, the login is still 5.7, and the mysql --help is 8.0, so the configuration of the service startup should be consistent
The fourth method mysql -V
These are the only ones I know so far, others are welcome to add later