THE WORLD'S LARGEST WEB DEVELOPER SITE

MySQL VERSION() Function

❮ MySQL Functions

Example

Return the current version of the MySQL database:

SELECT VERSION();
Try it Yourself »

Definition and Usage

The VERSION() function returns the current version of the MySQL database, as a string.

Syntax

VERSION()

Technical Details

Works in: From MySQL 4.0

❮ MySQL Functions