久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

Discuz! 官方交流社區(qū)

標(biāo)題: X3.4升級3.5遇到數(shù)據(jù)庫錯誤 [打印本頁]

作者: q18341427    時間: 2025-3-7 17:26
標(biāo)題: X3.4升級3.5遇到數(shù)據(jù)庫錯誤
Discuz! Database Error
Time: 2025-03-07 17:24:17 +0800 IP: 106.114.241.36 BackTraceID: 34912deda1dfb67553872fd3fc2ca4e1
(1071) Specified key was too long; max key length is 767 bytesALTER TABLE plugin_lj_words CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

PHP Debug
No.FileLineCode
1install/update_adult.php450discuz_database::query(%s)
2source/class/discuz/discuz_database.php142db_driver_mysqli->query(%s, false, false)
3source/class/db/db_driver_mysqli.php147db_driver_mysqli->halt(%s, %d, %s)
4source/class/db/db_driver_mysqli.php222break()
(, 下載次數(shù): 20)



作者: q18341427    時間: 2025-3-7 17:33
知道是數(shù)據(jù)庫有數(shù)據(jù)長度問題,具體怎么操作啊!純小白請告知具體怎么操作詳細(xì)步驟!謝謝
作者: 天外飄仙    時間: 2025-3-7 17:41
Q007:升級過程中提示Specified key was too long; max key length is 767 bytes
A007:這是由于插件的數(shù)據(jù)表未支持低版本mysql下的InnoDb引擎,X3.5將升級數(shù)據(jù)庫為InnoDb引擎,索引字段長度和Myisam不同,解決方法三選一:
       1. 升級mysql數(shù)據(jù)庫版本
       2. 保留mysql低版本但修改配置文件開啟長索引選項
       3. 需要看報錯中的具體表,進(jìn)行索引字段長度變更,一般設(shè)置為255的,修改長索引字段到190以下

按這個操作, 不理解的話 可以問問 ai






歡迎光臨 Discuz! 官方交流社區(qū) (http://www.9999xn.com/) Powered by Discuz! W1.0