(12) Moodle3.2から3.3にアップデート
完了要件
インストール途中で下記のようなワーニングが出ることがあります。 HTTPS接続の要否については各サイトの状況により違いますが、2番目の文字コードについては対処したほうがよさそうです。 |
---|
MariaDBの設定ファイルに下記のような追記を行います。 # vi my.cnf [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 # Settings user and group are ignored when systemd is used. # If you need to run mysqld under a different user or group, # customize your systemd unit file for mariadb according to the # instructions in http://fedoraproject.org/wiki/Systemd innodb_file_per_table = 1 innodb_file_format = Barracuda innodb_large_prefix character-set-client-handshake = FALSE character-set-server = utf8mb4 collation-server = utf8mb4_unicode_ci max_allowed_packet = 10M [mysqld_safe] log-error=/var/log/mariadb/mariadb.log pid-file=/var/run/mariadb/mariadb.pid # # include all files from the config directory # !includedir /etc/my.cnf.d [client] default-character-set = utf8mb4 [mysql] default-character-set = utf8mb4 MariaDBをリスタートして設定変更を反映します。 # systemctl restart mariadb.service |
Moodle3.3を展開したディレクトリで以下のPHPを走らせると既存のデータのコンバートが始まります。 # php admin/cli/mysql_collation.php --collation=utf8mb4_unicode_ci |
コンバートが完了すると、下記のようにワーニングが消えるので、インストールを続けます。 |
最終更新日時: 2023年 10月 13日(金曜日) 10:42