Since you have command line ...
some investigation as to what you do have ... using the DB you imported.
Let's see if moodledata/filedir has any backups of courses:
From code/admin/cli/
Create a bash shell script called 'getbackups'.
Contents of 'getbackups':
mysql -u $mddbuser -p$mddbpass -e "use $mddbname;select contenthash,filename,component from mdl_files where (filename like '%.mbz' and component= 'backup');" > backups.txt;cat backups.txt
wc -l backups.txt
Is a one-liner so above is all one line.
You replace $ variables in above with your info.
Output will look like this if you do have backups.
contenthash filename component
35584c737a95f204c9180c9d34702919ccc1ed31 backup-moodle2-course-1-m311-20220420-1250.mbz backup
b106680ac570d3f3b276f0c8f5668e57abebc5f3 backup-moodle2-course-1-m311-20240105-1550.mbz backup
8421db2cc5b3bf49ff7d65e539345723adc8b07b backup-moodle2-course-2-sa-20221204-1550.mbz backup
9d91a7ee9655dfff59dbf4b9fb83017328590583 backup-moodle2-course-2-sa-20221205-1550.mbz backup
4c91df255f6d5b2624f5b5087b407e9ac68c1bb2 backup-moodle2-course-4-t-20220420-1250.mbz backup
3011a48195a12f840c19f8b78b77b64a2f157fdb backup-moodle2-course-5-test-20221006-1550.mbz backup
e75e53f6c6178f1c4214f049fe1e02d673a06f32 backup-moodle2-course-5-test-20231107-1550.mbz backup
a61de1d4fb5c6980372fbe90e4a1e2fea700b35a backup-moodle2-course-6-h5pt-20220420-1250.mbz backup
96c859bd5fa256bac301d9914ca656cadd0cf442 backup-moodle2-course-7-test2-20221204-1550.mbz backup
11f48144ad11371ced6a48217c4b81d25cf4eca9 backup-moodle2-course-7-test2-20221205-1550.mbz backup
bce9d8b05bd760563132b85ab4d9bff689bf8330 backup-moodle2-course-8-ktnoclas-20231106-1550.mbz backup
afe8603f99cb4b2a52cebf76e097005f80c0ab7c backup-moodle2-course-8-ktnoclas-20231107-1550.mbz backup
fc3bb1b8227f330a658972f385836ea2c9c85a01 backup-moodle2-course-9-mdlsampler-20220805-1550.mbz backup
a117f0f57c1262f46eab6198151d27bc88df3042 backup-moodle2-course-9-mdlsampler-20220806-1550.mbz backup
9c073730f0310ec9e2e4e2f86c8954be6e1bab59 backup-moodle2-course-10-ktnoclas_frm_42-20230813-1550.mbz backup
d3f74cec74f60da773b1362b66c228ddf24f0849 backup-moodle2-course-10-ktnoclas_frm_42-20240105-1550.mbz backup
af159110dacd3308135616838d786b5de4e27871 backup-moodle2-course-5-test-20211007-1327.mbz backup
45e49153226272e1f0ecb07ee2825016f0f872a3 backup-moodle2-course-5-test-20211224-2029.mbz backup
e57d06f8512dcbd4c7d6f9b556aea86471cae9e0 backup-moodle2-course-5-test-20220407-1047.mbz backup
7999117b6829160b5e2bebecbdec94a38e54e7a1 backup-moodle2-course-5-test-20220407-1100.mbz backup
00f6d84b515885fc0089f7029ae749def4c391bf backup-moodle2-course-6-h5pt-20230517-1537.mbz backup
41ceed1820ab54e7f978a333a4fc1f33c595cd8c backup-moodle2-course-8-ktnoclas-20220318-1658.mbz backup
c1f1ea4647462c1a486c1e0c3879529d9bca4b20 backup-moodle2-course-8-ktnoclas-20221202-1556.mbz backup
3658502ea187c8501e71c6bd95fd5fc41b44ddd0 backup-moodle2-course-9-mdlsampler-20230629-1050.mbz backup
25 backups.txt
Taking the first line - bold above:
35584c737a95f204c9180c9d34702919ccc1ed31
is both the backup filename as it exist in moodledata/filedir/ and it's location:
moodledata/filedir/35/58/ then a file called bold above
The humanly recognizable filename you see in bold example
backup-moodle2-course-1-m311-20220420-1250.mbz
tells you that the backup includes users and their work.
If the backup filename had 'nu' in it, that means that course backup doesn't include users (nu = no users).
Here's another that might come in handy ... using the imported DB again and again from the code/admin/cli/ directory:
php cfg.php > allsettings.txt
That script list all settings contained in the DB and redirects to a text file 'allsettings.txt'
which will be rather long. You could, download via browser, to your local machine and browse it locally.
Or use it on the server seeking info ... like the exact version of moodle the db contains:
fgrep 'version' allsettings.txt
Another ... getusers
contains
mysql -u $mddbuser -p$mddbpass -e "use $mddbname;select id,auth,username,email from mdl_user;" > users.txt;cat users.txt
wc -l users.txt
ID #2 was/is the original admin user that installed software ... usually .. cept in your case coming from a MP, dunno that to be true.
Since you cannot login, the auth column might be of interest.
There is a password column but don't think that will do you much good as it is not clear text password.
BTW, you could make any of those userid's admin levels to the moodle. And for manual auth accounts, you can change the password via
reset_password.php in code/admin/cli/
The above is the sort of thing you will have to do to get things sorted.
Uhhh, one is not looking at something that is gonna be 100% so expect other issues to raise their ugly head.
'SoS', Ken