简体   繁体   English

MySQL数据库中的Joomla版本

[英]Joomla Version in MySQL Database

I have a crashed/hacked Joomla installation (Files and Folders only) Database has NOT been compromised so I have the DB which is in Good Condition. 我有一个崩溃/被黑客攻击的Joomla安装(仅限文件和文件夹)数据库没有受到损害,因此我的数据库处于良好状态。

I need to find out what was the installed version of Joomla that was live, so I can download that exact version package and reinstall it on a new location. 我需要找出现场安装的Joomla版本是什么,所以我可以下载那个确切的版本包并在新位置重新安装。

Is there a table or an entry in the DB that tells me this? DB中是否有表格或条目告诉我这个?

I have a JoomlaPack backup and I also need to know which version of Joomla Pack was installed right before the devastation, so I can restore properly. 我有一个JoomlaPack备份,我还需要知道在破坏之前安装了哪个版本的Joomla Pack,所以我可以正常恢复。

thank you 谢谢

After some research: 经过一番研究:

The Joomla version is not saved on the DataBase. Joomla版本未保存在DataBase上。 The Joomla version is saved in a file here: Joomla版本保存在这里的文件中:

/libraries/Joomla/version.php /libraries/Joomla/version.php

Newer versions of Joomla store the version of the database schema in the table jos_schemas (You have to replace jos_ with your database prefix). 较新版本的Joomla在表jos_schemas中存储数据库模式版本 (您必须将jos_替换为您的数据库前缀)。 Look in the row wehere the extension ID is 700. For example it could read: 查看扩展ID为700的行。例如,它可以读取:

extension_id|version_id
700         |1.7.3-2011-11-10

This would indicate that the last Joomla version this database was used with was 1.7.3. 这表明此数据库使用的最后一个Joomla版本是1.7.3。 (The date behind it is the day the change to the database schema was committed). (它后面的日期是提交数据库模式的更改的日期)。

This system has been in place at least since Joomla 1.7. 至少自Joomla 1.7以来,该系统已经到位。 For older versions you'll have to resort to different solution. 对于旧版本,您将不得不求助于不同的解决方案。 The database schema between version 1.0, 1.5 and 1.6 is very different so it should not be very hard to figure out to which version it belongs by comparing to other installations. 版本1.0,1.5和1.6之间的数据库模式是非常不同的,因此通过与其他安装进行比较来确定它所属的版本应该不是很难。

Joomla 1.0 and 1.5 did not change the database schema in minor versions so you can always install the newest minor version of those. Joomla 1.0和1.5没有更改次要版本中的数据库模式,因此您始终可以安装最新的次要版本。 Joomla 1.7 and newer will update the database schema themselves if they discover it's outdated, however I wouldn't rely on this when restoring a site. 如果Joomla 1.7和更新版本发现它已经过时,它们将自行更新数据库模式,但是在恢复站点时我不会依赖于此。

Lastly your reference to Joomla Pack makes me think you're still using Joomla 1.0 - update! 最后你对Joomla Pack的引用让我觉得你还在使用Joomla 1.0 - 更新! It's an incredibly outdated version. 这是一个令人难以置信的过时版本。

In joomla 2.x you can also find the version in 在joomla 2.x中你也可以找到版本

administrator/manifests/files/joomla.xml 管理员/舱单/文件/ joomla.xml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM