

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How To Check MySQL Version
Let us understand how to check the version of MySQL that the user is currently running −
Before entering queries on the console, it is important to ensure that the user is connected to the server.
Check MySQL Version
The below query would give the version number of the server being used, and the current date.
mysql> SELECT VERSION(), CURRENT_DATE;
Note: The function ‘VERSION()’ and ‘CURRENT_DATE’ are case −insensitive. This means ‘version()’, ‘Version()’, ‘vERsion()’, all mean the same. Same goes with ‘CURRENT_DATE’
Queries
Learn about MySQL Queries
An SQL query is followed by a semi−colon.
When a query is issued to mysql, it sends the query to the server for execution. The results are computed and displayed. Another ‘mysql>’ also gets printed, indicating that the server is ready for one more query.
The output after executing the mysql query is in tabular form, i.e rows and columns. The first row contains the name of the columns. The remaining rows are the query results.
Once the query is executed, ‘mysql’ also gives the number of rows that were returned, the amount of time taken to execute the query. This gives the user a rough idea about the performance of the server.
MySQL server can also be used to execute multiple statement in a single line. It has been shown below −
mysql > SELECT VERSION(); SELECT NOW();
- Related Questions & Answers
- How can I check the version of MySQL Server?
- How to check version of python modules?
- How to check the system version of Android?
- SQL query to check SAP HANA system version
- Which version is my MySQL?
- Which MySQL Version and Distribution to Install?
- How I can check a Python module version at runtime?
- How to check the PowerShell version installed in local and remote systems?
- How to install the specific version of the PowerShell module version?
- How do I check what version of Python is running my script?
- How to check privileges in MySQL?
- Get a list of MySQL databases and version?
- How to get android application version name?
- How to get programmatically android version number?
- How to retrieve android API version programmatically?