Is there a function to display MySQL version in PHP?
TIA
show variables;
Thank you!
Actually, that doesn't do it. I'm trying to display the version on the web site. I don't want have to modify the page every time the server gets upgraded.
Assuming you are using Linux, this should work for you.
echo $mysql_version = exec('mysql -V');
Originally posted by theeper Assuming you are using Linux, this should work for you. echo $mysql_version = exec('mysql -V');
Solaris here but it worked. I just tried it on Windows and it worked too.
Thank you 😃