Open Nolwennig opened 3 months ago
did you fix this error?
@maxorehov No :disappointed: , to temporary fix this error, I used mariadb:10.6
in compose.yaml
(line:41)
# If you wish to use MariaDB, comment out the mysql db image below and
# uncomment this block.
db:
image: mariadb:10.6
command:
--max_allowed_packet=64M
--optimizer_use_condition_selectivity=1
--optimizer_switch="rowid_filter=off"
ports:
- "3306:3306"
env_file: env/db.env
volumes:
- dbdata:/var/lib/mysql
# # If you wish to use MySQL, comment out the mariadb db image above and
# # uncomment this block.
# db:
# image: mysql:8.0
# command:
# --max_allowed_packet=64M
# --optimizer_use_condition_selectivity=1
# # --optimizer_switch="rowid_filter=off"
# ports:
# - "3306:3306"
# env_file: env/db.env
# volumes:
# - dbdata:/var/lib/mysql
Did anyone fixed it?
and
bin/start --no-dev
return➜ magento246 git:(master) ✗ docker logs magento246-db-1
returnI find
rowid_filter
option foroptimizer_switch
inMariaDB
(since 10.4.3) -- see: https://mariadb.com/kb/en/rowid-filtering-optimization/ + https://mariadb.com/kb/en/rowid-filtering-optimization/ -- but I dont find the optionsrowid_filter
foroptimizer_switch
-- see: https://dev.mysql.com/doc/refman/8.0/en/switchable-optimizations.html + https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_optimizer_switch , so I decide to quickly comment the line 59--optimizer_switch="rowid_filter=off"
incompose.yaml
run again
bin/start --no-dev
failed to startAt this point,
➜ magento246 git:(master) ✗ docker logs magento246-db-1
returnHere is the best way is under the message :
Tablespace flags are invalid in datafile: ./ibdata1, Space ID:0, Flags: 21. Please refer to http://dev.mysql.com/doc/refman/8.0/en/innodb-troubleshooting-datadict.html for how to resolve the issue.
?Originally posted by @Nolwennig in https://github.com/markshust/docker-magento/issues/1188#issuecomment-2247844812