I have very little db exerience so basically I'm attacking most errors I find with Stackoverflow and google.
During the upgrade I ran into db issues(below) where mysql failed to start, these were fixed with workarounds I found online.
[ERROR] [MY-000067] [Server] unknown variable 'query_cache_limit=1M'.
Fix:
comment out from /etc/mysql/my.cnf
#query_cache_limit = 1M
#query_cache_size = 16M
[ERROR] [MY-000067] [Server] unknown variable 'innodb_file_format=Barracuda'.
Fix:
Comment out from /etc/mysql/my.cnf
#innodb_file_format = Barracuda
#innodb_file_per_table = 1
#innodb_large_prefix
Mysql started, app upgraded fine, however I keep getting errors reading from the DB around the same general error.
mysqldump: Got error: 1709: Index column size too large. The maximum column size is 767 bytes. when using LOCK TABLES
mysqldump: Couldn't execute 'show create table `mdl_comments`': Index column size too large. The maximum column size is 767 bytes. (1709)
I pulled a debug of the last one:
Debug info: Index column size too large. The maximum column size is 767 bytes.
SELECT COUNT('x') FROM mdl_comments WHERE component = ? AND commentarea = ? AND itemid = ? AND contextid = ?
-- line 1679 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
-- line 220 of /question/classes/local/bank/column_base.php: call to qbank_comment\comment_count_column->display_content()
-- line 1280 of /question/classes/local/bank/view.php: call to core_question\local\bank\column_base->display()
-- line 1200 of /question/classes/local/bank/view.php: call to core_question\local\bank\view->print_table_row()
-- line 1176 of /question/classes/local/bank/view.php: call to core_question\local\bank\view->print_table()
-- line 1013 of /question/classes/local/bank/view.php: call to core_question\local\bank\view->display_questions()
-- line 777 of /question/classes/local/bank/view.php: call to core_question\local\bank\view->display_question_list()
-- line 60 of /question/edit.php: call to core_question\local\bank\view->display()
[array (
0 => 'qbank_comment',
1 => 'question',
2 => '254076',
3 => 1,
)]
Error code: dmlreadexception
Stack trace:
line 494 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 293 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->query_end()
line 1371 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->query_end()
line 1679 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
line 1752 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
line 1963 of /lib/dml/moodle_database.php: call to moodle_database->get_field_sql()
line 1946 of /lib/dml/moodle_database.php: call to moodle_database->count_records_sql()
line 1929 of /lib/dml/moodle_database.php: call to moodle_database->count_records_select()
line 65 of /question/bank/comment/classes/comment_count_column.php: call to moodle_database->count_records()
line 220 of /question/classes/local/bank/column_base.php: call to qbank_comment\comment_count_column->display_content()
line 1280 of /question/classes/local/bank/view.php: call to core_question\local\bank\column_base->display()
line 1200 of /question/classes/local/bank/view.php: call to core_question\local\bank\view->print_table_row()
line 1176 of /question/classes/local/bank/view.php: call to core_question\local\bank\view->print_table()
line 1013 of /question/classes/local/bank/view.php: call to core_question\local\bank\view->display_questions()
line 777 of /question/classes/local/bank/view.php: call to core_question\local\bank\view->display_question_list()
line 60 of /question/edit.php: call to core_question\local\bank\view->display()
There is a lot of conflicting information on Stack Overflow and my usual suspects, So I thought maybe someone here could point me in the correct direction without my having to break 1000 things in figuring this out??