Jos Asked: 2017-11-16 22:00:28 +0800 CST2017-11-16 22:00:28 +0800 CST 2017-11-16 22:00:28 +0800 CST how to check if a database is mysql or mariadb 772 I have some problems with a database. I think it might be mysql, my own database is probably mariadb. How can I check that? mysql 4 Answers Voted Best Answer Ibijola Adetayo 2017-11-17T00:32:36+08:002017-11-17T00:32:36+08:00 You can do this on your login to the database from the terminal: mysql -u user -p Enter your password and it displays the database name with the welcome message.mysql welcome pageMaria Welcome page sys0dm1n 2017-11-16T23:52:17+08:002017-11-16T23:52:17+08:00 Since you mentioned Lampp, this means you have Linux, Apache, MySQL, PHP and phpmyadmin. Use this command to see what is installed on your machine, Mysql or mariadb. dpkg -l | grep -e mysql-server -e mariadb-server Clemorphy 2020-12-19T05:46:26+08:002020-12-19T05:46:26+08:00 If you can perform a query : SELECT VERSION(); I tested on a mariadb server and it shows : 5.5.60-MariaDB Adam 2021-01-30T01:15:25+08:002021-01-30T01:15:25+08:00 If you can perform a query then i would suggest: SHOW VARIABLES LIKE "%version%"; then look for version_comment you should see something like MariaDB Server OR MySQL Community Server (GPL)
You can do this on your login to the database from the terminal:
Enter your password and it displays the database name with the welcome message.mysql welcome pageMaria Welcome page
Since you mentioned Lampp, this means you have Linux, Apache, MySQL, PHP and phpmyadmin. Use this command to see what is installed on your machine, Mysql or mariadb.
If you can perform a query :
I tested on a mariadb server and it shows :
If you can perform a query then i would suggest:
SHOW VARIABLES LIKE "%version%";
then look for
version_comment
you should see something likeMariaDB Server
ORMySQL Community Server (GPL)