You can check the MySQL version using the mysqli_get_server_info function. To do this, you should create a simple php file (for example mysql.php) with the following lines in it:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
$mysql=mysqli_connect('localhost','mysql_user','mysql_pass');
/* Test the MySQL connection */
if(mysqli_connect_errno()){
printf("Connection failed: %s\n",mysqli_connect_error());
exit();
}
/* Print the MySQL server version */
printf("MySQL server version: %s\n",mysqli_get_server_info($mysql));
/* Close the MySQL connection */
mysqli_close($mysql);
?>
|
Make sure you replace mysql_user and mysql_pass with your MySQL username and password.
Then you should open the file in a browser to see the MySQL version. The path to the file should be:
yourdomainname.com/mysql.php
cPanel is easy to work with when you have the right host to support you. If you need a reliable partner to help you manage your website with cPanel, check out our cPanel hosting services!