Upgrading failed now can't access Site Admin. How to fix?

Re: Upgrading failed now can't access Site Admin. How to fix?

by Ian L -
Number of replies: 0

So I tryed uploading the old database and now get these errors:

Error reading from database
Debug info: Table 'mysitename_moodle.mdl_sessions' doesn't exist
SELECT id, sid, state, userid, lastip, timecreated, timemodified FROM mdl_sessions WHERE sid = ?
[array (
0 => 'e74cea86f81c20e87cab898fd24b50bc',
)]
Error code: dmlreadexception
Stack trace:
  • line 443 of /lib/dml/moodle_database.php: dml_read_exception thrown
  • line 1080 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 1476 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
  • line 1448 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
  • line 1427 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
  • line 278 of /lib/classes/session/manager.php: call to moodle_database->get_record()
  • line 79 of /lib/classes/session/manager.php: call to core\session\manager::initialise_user_session()
  • line 775 of /lib/setup.php: call to core\session\manager::start()
  • line 26 of /config.php: call to require_once()
  • line 27 of /login/index.php: call to require()