> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# version

> Returns the current version of the MySQL database.

Returns the current version of the MySQL database.

You can use [current\_version](/documents/4.2/sql-reference/sql-functions/utility-functions/current_version.md) to query version.

## Syntax

```Haskell theme={null}
VARCHAR version();
```

## Parameters

None

## Return value

Returns a value of the VARCHAR type.

## Examples

```Plain Text theme={null}
mysql> select version();
+-----------+
| version() |
+-----------+
| 5.1.0     |
+-----------+
1 row in set (0.00 sec)
```

## References

[current\_version](/documents/4.2/sql-reference/sql-functions/utility-functions/current_version.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.