mysql_exceptions.OperationalError

轉載自stackoverflow,hjpotter92的回答。原文鏈接

(1118, 'Row size too large (> 8126)

修改mysql的my.cnf

sudo vi /etc/mysql/my.cnf

在[mysqld] 選項中添加

innodb_file_per_table=1
innodb_file_format = Barracuda

重啓mysql之後,修改或者重新創建表

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章