Interested in improving this site? Please check the To Do page.
mysql.getServerVersion
Get MySQL server version in numerical form
Syntax
mysql.getServerVersion(dbid)
Params
A database connection id
Returns
An integer containing the version of the MySQL server
Examples
dialog.alert("Server version: " + mysql.getServerVersion(id))
ยป Server version: 50037
Notes
Return format is a number that represents the MySQL server version in this format:
major_version*10000 + minor_version *100 + sub_version
For example, 5.1.5 is returned as 50105. This function is useful in client programs for quickly determining whether some version-specific server capability exists.