Incorrect user-level lock name - Local Vagrant Environment - Craft 3 When creating a new field, I received a Database Exception error - 


  SQLSTATE[42000]: Syntax error or access violation: 3057 Incorrect user-level lock name '/var/www/storage/runtime/compiled_classes/ElementQueryBehavior.php'.


Loading an older database backup did not resolve the error, and neither did checking out an older branch. I am unable to access the panel or the site itself.

Installed Plugins


SEOmatic
Element API
SuperTable


Any assistance would be greatly appreciated



Edit: After dropping/creating the database multiple times, I am now getting this error instead



Edit 2: Here is a link to the full stack trace, which was posted to imgur due to the length

https://imgur.com/a/ADSvGCj
I just  ran into the exact same error on my Vagrant/Homestead environment when creating a field just with the lock name '/home/vagrant/code/craft/storage/runtime/compiled_classes/ContentBehavior.php'.

After getting this error the page cannot be accessed at all.

I'm using SuperTable, too.

The error itself seems to come from MySQL 5.7 where there is a character limit for the user-level lock names of 64 characters. Here the GET_LOCK statement fails. I just don't know how to fix it right now.