Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (6.1k points)
What command will return the present version of the MySQL database?

1 Answer

0 votes
by (12.7k points)

Several answers suggest using mysql --version. However, the mysql program is the client. The server is mysqld. Hence the command should be:

mysqld --version

That worked for me on Windows and Debian.

mysqld --help

While connected to the MySQL server with a client you can use.

select version()

or

select @@version

Want to become a SQL Expertise? Register to this SQL Course and get certified.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.5k questions

32.6k answers

500 comments

108k users

Browse Categories

...