I am having Magento1 Database details. Using that can we get the version of Magento?

I found it can get with files or with some custom code. I am looking to get from the Database. In which table does it store the version?

Please, anyone, suggest the answer.


Magento 1.x does not save its version information in the database tables. Instead, its version is set in the app/Mage.php file.

Wherever it needs to show the Magento version, it calls Mage::getVersion() function, which is hardcoded in the app/Mage.php file.

Therefore, you will need to follow the same process.

Please let me know if anything is unclear in my answer.

  • I am clear about this. So we can't get the version of magento using DB connection string is it? – jafar pinjar Jul 24 '18 at 6:50
  • Yes, you are right. – Mohit Kumar Arora Jul 24 '18 at 6:54

Directly from database its difficult but you can do with this trick

In magento database you will get core_config_data table

in that table you will get base_url

then hit that baseUrl/downloader in your browser.

if downloader is not secure in that site you will see login page and in that page you can see magento version


There are so many ways into this below link to check magento version. You can check using that :


  • Can you please read my question ? Can we get using mysql connection string? – jafar pinjar Jul 23 '18 at 9:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.