Fresh install error with mariadb/ wins 2016 server

Fresh install error with mariadb/ wins 2016 server

by Frank Madison -
Number of replies: 6

See attachment for error message

"Installation - Moodle 3.11+ (Build: 20210709)

Debug info: InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE."

I've read it might be an issue with a database not being empty. But this is brand new. If I need to delete the database, can someone explain how to do it? Not sure what to do, TIA

Average of ratings: -
In reply to Frank Madison

Re: Fresh install error with mariadb/ wins 2016 server

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I would read this - https://mariadb.com/kb/en/innodb-row-formats-overview/

It looks like some of your mariadb config settings are incompatible.
In reply to Howard Miller

Re: Fresh install error with mariadb/ wins 2016 server

by Frank Madison -
How do I go about making those changes? Never used mariadb before.
In reply to Frank Madison

Re: Fresh install error with mariadb/ wins 2016 server

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Presumably you've got MariaDB 10.6?

Try adding the following line to C:\Program Files\MariaDB 10.6\data\my.ini:

innodb_read_only_compressed=OFF

And restarting the MariaDB service (the service might be called MySQL).

It looks like this is a problem for Moodle, a feature it uses – ROW_FORMAT=COMPRESSED – is now deprecated in MariaDB ≥ 10.6. I've logged it as MDL-72131.

Average of ratings: Useful (2)
In reply to Leon Stringer

Re: Fresh install error with mariadb/ wins 2016 server

by Frank Madison -
Correct, I am using MariaDb 10.6. I updated the file below:

[mysqld]
datadir=C:/Program Files/MariaDB 10.6/data
port=3306
innodb_buffer_pool_size=504M
character-set-server=utf8
innodb_read_only_compressed=OFF
[client]
port=3306
plugin-dir=C:/Program Files/MariaDB 10.6/lib/plugin


still getting that error message.

side note: You think if I used Mariadb 10.5, this issue would go away?
In reply to Frank Madison

Re: Fresh install error with mariadb/ wins 2016 server

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

When you updated the file did you restart the service in the Services console (services.msc)?

You can check the current setting in the MariaDB shell with:

SHOW GLOBAL VARIABLES LIKE 'innodb_read_only_compressed';

And change it with:

SET GLOBAL innodb_read_only_compressed=OFF;

Although this will only last until the MariaDB service is next restarted which is why I recommend changing this in my.ini.

Yes, if you used MariaDB 10.5 this issue should go away.

Average of ratings: Useful (1)
In reply to Leon Stringer

Re: Fresh install error with mariadb/ wins 2016 server

by Frank Madison -
Okay, needed to restart the service; its working now. THANK YOU!