PHP/MariaDB/MySQL

How can I find my MariaDB - MySQL version?

Updated November 2026 8,822 views 3 min read
PHP/MariaDB/MySQL | Updated November 2026

There are several ways to check your MariaDB/MySQL version on Ultra Web Hosting, from phpMyAdmin to the command line. Knowing your version is useful when checking application compatibility, troubleshooting issues, or reporting to a developer.

01. Via phpMyAdmin

  1. Log in to cPanel
  2. Click phpMyAdmin under the Databases section
  3. Look at the right panel on the home page
  4. Find "Database server" - the version string is displayed there (e.g., "10.6.18-MariaDB-cll-lve")

02. Via cPanel

cPanel displays the MySQL/MariaDB version in the "Server Information" page:

  1. Log in to cPanel
  2. Scroll to the bottom of the left sidebar and find "Server Information"
  3. Look for "MySQL Version" in the list

03. Via SSH Command Line

If you have SSH access, run any of these:

# Quick version check
mysql -V

# Example output:
# mysql  Ver 15.1 Distrib 10.6.18-MariaDB, for Linux (x86_64)

# Or connect to the database and check
mysql -u cpaneluser_dbuser -p -e "SELECT VERSION();"

# MariaDB-specific version info
mysql -u cpaneluser_dbuser -p -e "SHOW VARIABLES LIKE 'version%';"

The SHOW VARIABLES query returns the version, version comment (e.g., "MariaDB Server"), and version compile information.

04. Via PHP Script

Create a temporary PHP file to check the version programmatically:

<?php
echo 'PHP: ' . phpversion() . '<br>';
echo 'MySQL client: ' . mysqli_get_client_info() . '<br>';

$conn = new mysqli('localhost', 'cpaneluser_dbuser', 'password', 'cpaneluser_dbname');
if (!$conn->connect_error) {
    echo 'Server version: ' . $conn->server_info;
    $conn->close();
}
?>
Important

Delete any test PHP files containing database credentials immediately after use. They are publicly accessible while in public_html.

05. Version Compatibility Notes

Ultra Web Hosting shared servers run MariaDB, which is a drop-in replacement for MySQL. MariaDB versions map to MySQL compatibility levels:

MariaDB 10.3-10.6 - Compatible with MySQL 5.7 and most MySQL 8.0 features. This is what most WordPress, Joomla, and Drupal installations expect.

WordPress requires MySQL 5.7+ or MariaDB 10.3+. All Ultra Web Hosting servers meet this requirement.

If an application asks for a specific MySQL version and you're running MariaDB, check the application's documentation for MariaDB compatibility. In most cases, MariaDB works identically to the MySQL version it's based on.

For connection troubleshooting, see MySQL Port 3306 Guide and Database Connection Guide.

Need a Specific Version?

If your application requires a specific MariaDB/MySQL version, open a ticket to check what's available on your server.

Open a Support Ticket

Frequently Asked Questions

What is the quickest way to see my MySQL version?

Open phpMyAdmin from cPanel. The version is shown on the right side of the home page under "Database server", for example "10.6.18-MariaDB".

Do Ultra Web Hosting servers run MySQL or MariaDB?

They run MariaDB, which is a drop-in replacement for MySQL. For nearly all applications it behaves identically to the MySQL version it is based on.

How do I check the version from SSH?

Run mysql -V for a quick check, or connect and run SELECT VERSION(); to see the exact server version string.

My application asks for a specific MySQL version but I have MariaDB. Is that a problem?

Usually not. MariaDB 10.3 through 10.6 maps to MySQL 5.7 and most 8.0 features, and meets the requirements of WordPress, Joomla, and Drupal. Check the application's docs for its MariaDB compatibility note if unsure.

Quick Recap: Finding Your MySQL Version

  1. phpMyAdmin shows it on the home page under "Database server"
  2. cPanel shows it in Server Information
  3. SSH: mysql -V for a quick check
  4. PHP: mysqli_get_client_info() or $conn->server_info
  5. MariaDB is MySQL-compatible - most applications work identically

Last updated November 2026 · Browse all PHP/MySQL articles

Share: X in Reddit f Email
  • 111 Users Found This Useful

Was this answer helpful?

Related Articles

Useful CSV to MySQL Script

PHP/MySQL | Updated December 2026 Importing CSV data into a MySQL/MariaDB database is a...

I am having problems with a script I wrote

Scripts | Updated November 2026 If a script you wrote or installed is not working on your...

How to Parse HTML as PHP

PHP/MariaDB/MySQL | Updated November 2026 By default, Apache only processes files with a .php...

How Do I Update or Change My PHP Version

Hosting Control Panel | Updated October 2026 Ultra Web Hosting runs CloudLinux with multiple...

How to Manage Your Database with phpMyAdmin

PHP & MySQL | Updated July 2026 phpMyAdmin is the web tool every Ultra Web Hosting...



Save 30% on web hosting - Use coupon code Hosting30