current version of MySQL code example

Example 1: mysql version

# console
mysql --version
mysql -V

# sql query
SHOW VARIABLES LIKE%version%;

Example 2: how to get current mysql version

SELECT VERSION ();

Example 3: what is my mysql version

Mysql version
mysql -V

Example 4: mysql community server

/* Answer to: "mysql community server" */

/*
  MySQL is an open-source relational database management system. Its
  name is a combination of "My", the name of co-founder Michael
  Widenius's daughter, and "SQL", the abbreviation for Structured
  Query Language.
  
  To download the community server application go to:
  https://dev.mysql.com/downloads/mysql/
*/

Example 5: mysql version

mysqld --version

Tags:

Sql Example