How to determine your MySQL or MariaDB version number

When working with phpMyAdmin and PHP, you will often use a programming language called SQL, which is the way your program will talk to your database. This language talks through a system called MySQL or MariaDB to update, create, and delete information from the program’s databases. At times, you may end up troubleshooting various errors such as syntax errors for MySQL within your PHP code or phpMyAdmin tool. It can be helpful to understand which version of MySQL or MariaDB you are using. Below is a quick guide on finding the version in use on your hosting servers.

MySQL came first. A few years ago, MariaDB was created as an open-source fork of MySQL to make sure that an open source database management system remained available. There are a few small differences between the two, but they remain very similar. Most InMotion Hosting servers currently use MariaDB.

Finding your MySQL or MariaDB version via phpMyAdmin

  1. Log into your cPanel admin dashboard.
  2. From the main cPanel area, look for the Databases category. Find and click on phpMyAdmin.
    picture of PHP's database panel with the PHPMyAdmin icon highlighted
  3. From the main phpMyAdmin page, look to the far right side of the page. There is a block entitled “Database Server”. Look for the field named Server version or Software version. Next to that label is a number. That is your MySQL or MariaDB version number.
    cPanel's PHPMyAdmin, with the area demonstrating the current database version highlighted

4 thoughts on “How to determine your MySQL or MariaDB version number

  1. I can create a database but when it comes to saving a table, it brings a syntax error 1064 that I need to find a manual that correspond with the version of mariadb now I don’t know what this means and how I can possibly resolve this error.

    1. I have seen instances where this is caused by having more opened than closed parenthesis in your syntax. Here is a helpful link to the official MariaDB knowledge base where they cover Parenthesis including this syntax error.

    1. Hi Tom, and thanks for pointing that out. This article is a bit out of date, I’ll get it updated to account for that and the newer versions of cPanel. Some of our servers now use MariaDB, which is an open source fork of MySQL that works almost the same way but is designed to be maintained as an open source project.

Was this article helpful? Join the conversation!

Shop the Black Friday Sale
Hurry! These Deals Won't Last Long