Database version error

Database version error

by Adonike Sylvester -
Number of replies: 3

database       mysql (5.6.40-84.0-log)           

This error appears and I don't know how to resolve it.


Attachment Screenshot (229).png
Average of ratings: -
In reply to Adonike Sylvester

Re: Database version error

by Ken Task -
Picture of Particularly helpful Moodlers

Server running and older version of MySQL and it needs to be upgraded to 5.7.   That is outside of Moodle and depends upon factors: how you are hosted?  If shared hosting you probably  cannot upgrade MySQL.  Contact hosting provider for options.  If a VM managed ... managed by provider, provider can upgrade (contact helpdesk of provider).  If a VM un-managed by hosting, then you.

Done via package manager for your operating system ... like apt/apt-get (Ubuntu/Debian) or yum/dnf is RedHat Family based OS.

Hoping that helps!

'SoS', Ken

In reply to Adonike Sylvester

Re: Database version error

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

Moodle 3.10 requires MySQL 5.7 so this needs upgrading on the server.

Support for MySQL 5.6 ends next week so shouldn't be in use for production websites. If you cannot upgrade MySQL then install Moodle 3.9 which will install with MySQL 5.6.

The other two messages – unsupported_db_table_row_format and mysql_full_unicode support – are warnings, you can install without resolving these. However, it's easier to resolve these now than it is to fix them after the site is installed. To configure your database so these warnings don't appear you should follow the steps for full UTF-8 support in the database installation instructions. In short you should:

1. Add the following lines to the [mysqld] section of my.cnf, the MySQL configuration file:

innodb_file_format=Barracuda
innodb_file_per_table=1
innodb_large_prefix=1

2. Restart the MySQL service to pick up this configuration change.

3. Create the Moodle database with the utf8mb4 character set, e.g. if the Moodle database is called "mymoodle":

CREATE DATABASE mymoodle DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

If any of the above are managed as part of a hosting service you should ask their support service if there is any difficulty changing these settings. If your hosting service cannot – or will not – help then I recommend you switch to a different hosting service.

In reply to Leon Stringer

Re: Database version error

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
All this being the default in MySQL 8 so you won't have to do any of it if you install that.

Watch out for the new password encryption, on the other hand.