Thanks for the report - I've committed your fix together with another fix of mine: the whole workaround applies to MySQL only. As it stood, it was breaking the plugin for all other databases.
More details in the bug entry...
External enrollments not working with database name containing '-'
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.