mysql server latest version code example

Example 1: mysql version

# console
mysql --version
mysql -V

# sql query
SHOW VARIABLES LIKE%version%;

Example 2: 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 3: mysql version

mysqld --version

Tags:

Php Example