Open mrfusi0n opened 1 year ago
This just bit me. My fault for not inspecting the script beforehand I guess. Thankfully I didn't loose anything to serious (other than my time), but it would be really nice if #69 was merged to prevent this kind of thing in the future.
I don't believe this is intended to be malicious but the bible-mysql.sql script not only creates/recreates the
bible
database but also attempts to create/recreate the coremysql
database! If someone attempted to load this onto an existing MySQL or MariaDB database using root privileges, it would wipe out all existing users (and more).bible-mysql.sql line 1096:
DROP TABLE IF EXISTS `user`;
I believe the solution is to remove everything non-bible related - i.e. everything below line 337 in bible-mysql.sql. I can submit a PR if that would be helpful.