PDA

View Full Version : Hosting Questions



ismail11
07-18-2011, 02:31 AM
How to check the MySQL version on the server hosting my account?

mesasa
08-13-2011, 07:53 AM
You can check the MySQL version using the phpinfo function. To do this, you should create a simple php file (for example phpinfo.php) with the following line in it:

<?php phpinfo(); ?>

Then you should open this file in a browser to see the full Apache/PHP information. The path to the file should be:

yourdomainname.com/phpinfo.php

The MySQL version is shown next to Client API version in the MySQL section of the file.

yahu123
08-14-2011, 10:36 PM
Thank you for share!

jimfaster
08-18-2011, 05:08 AM
SELECT @@VERSION;

OR

SHOW GLOBAL VARIABLES LIKE '%version%';

The former works even from a query issued via, say, PHP.