/* Make sure to consult the codex, as the db_version looks different from the wp version. */
/* https://codex.wordpress.org/WordPress_Versions */
SELECT * FROM `wp_options` where option_name = 'db_version'
// for the local wp installation
❯ cat /srv/www/wordpress/wp-includes/version.php | grep wp_version