why does joomla 2.5 session table corrupt?(为什么 joomla 2.5 会话表损坏?)
问题描述
我正在使用 Joomla 运行一个网站!2.5.9 7 个月.一切都很顺利,直到本周.周一和今天(周五)网站无法运行,因为****_session
表已损坏.我没有机会查看有关错误的日志.
I am running a website using Joomla! 2.5.9 for 7 months. Everything was going fine until this week. On monday and today(Friday) web site fails to run because of ****_session
table has been broken down. I don't have a chance to take a look at logs about what is wrong.
不管怎样,我周一修好了桌子,直到今天一切都很正常.今天它重复了同样的错误.然后我又修复了.不想桌子坏了不想再修.
Anyway, I repaired the table on Monday and everything was normal until today. Today it repeated the same error. Then I repaired again. I don't want the table to be broken and don't want to repair it again.
我想知道 Joomla! 是否存在漏洞!或者服务器端有其他东西.
I want to know if there is a vulnerability about Joomla! or there is something else on server side.
推荐答案
我制作了一个页面,可以在崩溃时手动修复表格.
I have made a page which repairs the table manually when crashed.
<?php
//file = repair/index.php
include '../configuration.php'; //has JConfig class
$cfg = new JConfig();
$mysqli = new mysqli($cfg->host, $cfg->user, $cfg->password, $cfg->db);
if($mysqli->query('REPAIR TABLE prefix_session'))
echo 'Hey!';
else
echo 'An error occured call zkanoca';
?>
当我调用 http://example.com/repair 时就可以了.
when I call http://example.com/repair it is OK.
这篇关于为什么 joomla 2.5 会话表损坏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:为什么 joomla 2.5 会话表损坏?
基础教程推荐
- SQL Server:只有 GROUP BY 中的最后一个条目 2021-01-01
- SQL Server 中单行 MERGE/upsert 的语法 2021-01-01
- Sql Server 字符串到日期的转换 2021-01-01
- 无法在 ubuntu 中启动 mysql 服务器 2021-01-01
- SQL Server 2016更改对象所有者 2022-01-01
- 如何在 SQL Server 的嵌套过程中处理事务? 2021-01-01
- 将数据从 MS SQL 迁移到 PostgreSQL? 2022-01-01
- 在 VB.NET 中更新 SQL Server DateTime 列 2021-01-01
- ERROR 2006 (HY000): MySQL 服务器已经消失 2021-01-01
- 使用pyodbc“不安全"的Python多处理和数据库访问? 2022-01-01