MySQL includes the @@version
system variable and the VERSION()
function that enable you to find out what version of MySQL you’re running.
The VERSION() Function
Here’s an example of using the VERSION()
function:
SELECT VERSION();
This simply returns the version number and no more. Like this:
8.0.11