I have some problems with a database. I think it might be mysql, my own database is probably mariadb. How can I check that?
Asked
Active
Viewed 5.7k times
4 Answers
20
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
Ibijola Adetayo
- 316
7
If you can perform a query :
SELECT VERSION();
I tested on a mariadb server and it shows :
5.5.60-MariaDB
Clemorphy
- 171
4
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)
Adam
- 41