Determining the MySQL version
You can check which version of MySQL is installed on your server using cPanel, phpMyAdmin, or the command line.
Method 1: Using cPanel
Section titled “Method 1: Using cPanel”- Log in to your cPanel account.
- In the right sidebar under General Information, click Server Information.
- Locate the MySQL Version row to see the installed version.
Method 2: Using phpMyAdmin
Section titled “Method 2: Using phpMyAdmin”-
Log in to phpMyAdmin.
- If using cPanel, click the phpMyAdmin icon in the Databases section.
-
In the Database server section, the MySQL version is displayed.
Method 3: Using the Command Line
Section titled “Method 3: Using the Command Line”- Log in to your server via SSH.
- To see a basic version, run:
mysql --version- For detailed version information, log in to MySQL:
mysql -u username -pThen run the query:
SHOW VARIABLES LIKE "%version%";This provides detailed information, including the MySQL/MariaDB version, database engine version, SSL library, and more. Sample output:
MariaDB [(none)] SHOW VARIABLES LIKE "%version%";
Variable_name Value──────────────────────────────────────────────────────────────────────────────in_predicate_conversion_threshold 1000innodb_version 10.3.23protocol_version 10slave_type_conversionssystem_versioning_alter_history ERRORsystem_versioning_asof DEFAULTversion 10.3.23-MariaDB-cll-lveversion_comment MariaDB Serverversion_compile_machine x86_64version_compile_os Linuxversion_malloc_library jemalloc 3.6.0-0-g46c0af68bd248b04df75e4f92d5fb804c3d75340version_source_revision 607467bd63db2c6ca64610eb9f4e703711f4dfc6version_ssl_library OpenSSL 1.0.2k-fips 26 Jan 2017wsrep_patch_version wsrep_25.24
14 rows in set (0.002 sec)This method helps you identify the server’s MySQL or MariaDB version for compatibility and troubleshooting purposes.