{"id":4625,"date":"2015-08-16T14:15:44","date_gmt":"2015-08-16T12:15:44","guid":{"rendered":"https:\/\/www.bdjl.de\/localhost\/?p=4625"},"modified":"2015-08-16T14:24:16","modified_gmt":"2015-08-16T12:24:16","slug":"moodle-2-9-x","status":"publish","type":"post","link":"https:\/\/www.bdjl.de\/localhost\/?p=4625","title":{"rendered":"Moodle 2.9.x Teil I"},"content":{"rendered":"<p>Moodle 2.9.x braucht als DB-Engine zwingend InnoDB und l\u00e4uft nicht mehr mit MyISAM. Im Verlauf des Updates meldet sich deswegen Moodle mit der Meldung<\/p>\n<pre class=\"lang:default decode:true \">unsupported_db_storage_engine<\/pre>\n<p>Erster Schritt ist die Kontrolle, ob die eigene mySQL DB InnoDB \u00fcberhaupt unterst\u00fctzt. Hierzu z.B. in phpmyadmin anmelden und dort auf dem Reiter SQL<\/p>\n<pre class=\"lang:default decode:true \">SHOW ENGINES<\/pre>\n<p>absetzen [<a href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.1\/en\/show-engines.html\" target=\"_blank\">1<\/a>]. Meist zeigt die Ausgabe das hier:<\/p>\n<p><a href=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2015\/08\/showengines.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4626\" src=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2015\/08\/showengines-640x332.png\" alt=\"showengines\" width=\"640\" height=\"332\" srcset=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2015\/08\/showengines-640x332.png 640w, https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2015\/08\/showengines-1024x531.png 1024w, https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2015\/08\/showengines-624x324.png 624w, https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2015\/08\/showengines.png 1133w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>und alles ist gut. Wenn nicht, dann hat man richtig Arbeit an der Backe und muss zuerst die MySQL Installation auf Vordermann bringen.<\/p>\n<p>Dann im Backend von Moodle (als Administrator) die URL wie folgt anpassen:<\/p>\n<pre class=\"lang:default decode:true \">https:\/\/www.meinmoodle.tld\/admin\/tool\/innodb\/index.php<\/pre>\n<p>und der Migrationsprozess rattert los. Das kann dauern. Lange.<\/p>\n<p>Moodle schimpft dann evtl. \u00fcber Tabellen im Antelope Format, statt des gew\u00fcnschten Barracuda:<\/p>\n<pre class=\"lang:default decode:true\">unsupported_db_table_row_format<\/pre>\n<p>Hier ist man nun auf die Shell gezwungen, wenn ich das richtig sehe. DB-Experten m\u00f6gen mich korrigieren.<\/p>\n<p>Erst einmal nachschauen, welche Tabellen \u00fcberhaupt bearbeitet werden m\u00fcssen. Das geht mit einem Script, das Moodle mitbringt und das \u00fcber dem Moodle-Stammverzeichnis ausgef\u00fchrt werden muss:<\/p>\n<pre class=\"lang:default decode:true\">sudo -u www-data \/usr\/bin\/php moodle\/admin\/cli\/mysql_compressed_rows.php --list<\/pre>\n<p>Bei mir ergab das<\/p>\n<pre class=\"lang:default decode:true \">mdl_data                        Compact     (needs fixing)\r\nmdl_data_fields                 Compact     (needs fixing)\r\nmdl_enrol_paypal                Compact     (needs fixing)\r\nmdl_lti                         Compact     (needs fixing)\r\nmdl_user                        Compact     (needs fixing)\r\nmdl_user_info_field             Compact     (needs fixing)<\/pre>\n<p>was sich mit Hilfe des oben genannten Scripts durch den Schalter <em>&#8211;fix<\/em> jedoch nicht reparieren l\u00e4sst, weil man hierzu mehr Rechte innerhalb der MySQL-DB ben\u00f6tigt, als bei mir hier der Apache hat.<\/p>\n<p>Moodle selbst l\u00e4uft auch unter Version 2.9.x noch mit Antelope &#8211; das Upgrade kann also stattfinden. Da ich die Nebenwirkungen von Barracuda schlecht absch\u00e4tzen kann, wenn ich mit der DB-Kompression spiele (da h\u00e4ngen auch noch WordPresse und Typos mit dran), bespreche ich mich mal lieber zuerst mit Frank. Mal sehen, was der meint &#8211; und dann geht es weiter.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Moodle 2.9.x braucht als DB-Engine zwingend InnoDB und l\u00e4uft nicht mehr mit MyISAM. Im Verlauf des Updates meldet sich deswegen Moodle mit der Meldung unsupported_db_storage_engine Erster Schritt ist die Kontrolle, ob die eigene mySQL DB InnoDB \u00fcberhaupt unterst\u00fctzt. Hierzu z.B. in phpmyadmin anmelden und dort auf dem Reiter SQL SHOW ENGINES absetzen [1]. Meist zeigt [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[527,528,56],"class_list":["post-4625","post","type-post","status-publish","format-standard","hentry","category-moodle","tag-innodb","tag-myisam","tag-mysql"],"_links":{"self":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/4625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4625"}],"version-history":[{"count":9,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/4625\/revisions"}],"predecessor-version":[{"id":4635,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/4625\/revisions\/4635"}],"wp:attachment":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}