返回列表 发帖
楼主: 湖中沉

[已解决] 升级X3.5常见问题汇总

 

5

主题

17

回帖

26

积分

初学乍练

贡献
0 点
金币
3 个
发表于 前天 17:22 | 查看全部
Discuz! Database Error
Time: 2025-06-20 17:18:19 +0800 IP: 110.53.44.63 BackTraceID: 38fb1b9072aca0dce9aff7016bd34ade

(1118) Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
ALTER TABLE common_member_profile_archive ENGINE=InnoDB;
PHP Debug

No.        File        Line        Code
1        install/update_adult.php        260        discuz_database::query()
2        source/class/discuz/discuz_database.php        142        db_driver_mysqli->query()
3        source/class/db/db_driver_mysqli.php        147        db_driver_mysqli->halt()
4        source/class/db/db_driver_mysqli.php        222        break()
回复

使用道具 举报

23

主题

5512

回帖

1万

积分

应用开发者

贡献
593 点
金币
1441 个
QQ
 楼主| 发表于 前天 17:31 | 查看全部
hhdao 发表于 2025-6-20 17:22
Discuz! Database Error
Time: 2025-06-20 17:18:19 +0800 IP: 110.53.44.63 BackTraceID: 38fb1b9072aca0d ...


当 Discuz! 升级到 X3.5 时出现 “Row size too large (> 8126)” 错误,这是 MySQL 的行长度限制导致的问题。以下是解决此问题的步骤:
1. 修改 MySQL 配置
首先需要调整 MySQL 的配置参数,以支持更大的行长度。
步骤:
1找到 MySQL 配置文件(通常是my.cnf或my.ini)。
2在[mysqld]部分添加或修改以下参数:

  1. innodb_file_per_table = 1
  2. innodb_strict_mode = 0
  3. innodb_file_format = Barracuda
  4. innodb_log_file_size = 256M
复制代码


3重启 MySQL 服务。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 关注公众号
  • 有偿服务微信
  • 有偿服务QQ

手机版|小黑屋|Discuz! 官方交流社区 ( 皖ICP备16010102号 |皖公网安备34010302002376号 )|网站地图|star

GMT+8, 2025-6-22 16:07 , Processed in 0.071084 second(s), 28 queries .

Powered by Discuz! W1.0 Licensed

Cpoyright © 2001-2025 Discuz! Team.

关灯 在本版发帖
有偿服务QQ
有偿服务微信
返回顶部
快速回复 返回顶部 返回列表