Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
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()


select @@version

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

Browse Categories