![]() If they are on different machines substitute the name of the web server for 'localhost' in the following instructions and the 'dbhost' setting will be the name of the database server.ĭatabases have a "Character set" and a "Collation". In this case the 'dbhost' is 'localhost'. The instructions assume that the web server and MySQL server are on the same machine. Substitute your own database name, user name and password as appropriate. These are the steps to create an empty Moodle database. If for some reason you cannot change to the settings described here you can continue to install Moodle but you must select utf8 and utf8_unicode_ci for the default character set and collation respectively. If you have any difficulty applying these settings, see MySQL_full_unicode_support for further information. Restart the MySQL server process to apply these settings (for example with MariaDB on Linux: systemctl restart mariadb). Innodb_large_prefix = 1 # Remove line if not needed Innodb_file_format = Barracuda # Remove line if not needed Note: Other systems with databases on this server may be impacted by this change.Īdd the following settings to the configuration file, do not add innodb_file_format = Barracuda and innodb_large_prefix = 1 if these were blank or missing when you ran SHOW GLOBAL VARIABLES above:.Note: Back up all databases before making this change.Note: Back up the configuration file before changing it.On Linux this may be /etc/my.cnf, /etc/mysql/my.cnf, or /etc/my.cnf.d/mariadb-server.cnf on Microsoft Windows it may be my.ini. If your settings do not match any list you will have to edit the MySQL configuration file. If the settings you see match any list above then no changes are needed and you can skip to Creating Moodle database. SHOW GLOBAL VARIABLES WHERE variable_name IN ('innodb_file_format', 'innodb_large_prefix', 'innodb_file_per_table') It is possible to do this after installing your site but is much easier and quicker before installation.Ĭheck if this is already configured by running the following statement, e.g. If this is not done some character sets – notably emojis – cannot be used. ![]() It's recommended that full UTF-8 support is configured in MySQL. Otherwise, Moodle will not be able to write to the database.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |