MySQL: Check current database

This entry is part 26 of 26 in the series Learn MySQL

Many useful queries are quite simple and don’t specify all those things.

For example, to check the current database and MySQL version we are using:

select version(), database();

showdb

Series Navigation<< MySQL: String comparison