1

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.

4

3 Answers 3

3

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.

2
  • I am clear about this. So we can't get the version of magento using DB connection string is it? Commented Jul 24, 2018 at 6:50
  • Yes, you are right. Commented Jul 24, 2018 at 6:54
2

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

0

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

https://www.magestore.com/magento-2-tutorial/magento-version/

1
  • Can you please read my question ? Can we get using mysql connection string? Commented Jul 23, 2018 at 9:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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