SELECT @@version; perl; $cnt= $ENV{MYSQL_TEST} =~ /mysqltest_embedded / ? 1 : grep /my_favorite_version/, `$ENV{MYSQL} -e status`; print "$cnt\n"; EOF query_vertical select * from information_schema.system_variables where variable_name='version';