2018-10-03, 23:44
I have a script that has served me well when I needed to move files from one location to another. Recently, I started tweaking it and forgot to rename the two variables that make up the `SET [strpath|c22|etc] = REPLACE([strpath|c22|etc], @old_val, @new_val)`. Can you guess what happened about five minutes ago when I ran the script again? Yeah, I'm an idiot. Bye, bye entire database.
Obviously I was a little too flippant (even if MySQL Workbench does catch/prevent most mistakes), and the last backup I created of the database was months and months ago. I've moved so many things around since then, it would be next to useless to try and use it as a restore option.
I am virtually certain that each of the connected clients has a copy of the DB, because after failing to connect to the DB, I've noticed they still show all the same content from before their last shutdown.
I would be importing from LibreELEC-based clients. Can anyone offer me any pointers or should I just start poking around on one of the clients? I imagine that I'll probably have to work with some form of XML-SQL conversion software (i.e. I am pretty sure I won't be lucky enough to find .sql files on the clients, more likely .xml). Trying to keep calm here and not screw up any more than I already have (opened my one Windows client, "just to see", and now that client's DB is surely just as trashed), so any help at all would be greatly appreciated.
I could always wipe the DB and start over, but I'm praying I won't have to do that. Took a tremendous amount of time the last time I had to do that.
Obviously I was a little too flippant (even if MySQL Workbench does catch/prevent most mistakes), and the last backup I created of the database was months and months ago. I've moved so many things around since then, it would be next to useless to try and use it as a restore option.
I am virtually certain that each of the connected clients has a copy of the DB, because after failing to connect to the DB, I've noticed they still show all the same content from before their last shutdown.
I would be importing from LibreELEC-based clients. Can anyone offer me any pointers or should I just start poking around on one of the clients? I imagine that I'll probably have to work with some form of XML-SQL conversion software (i.e. I am pretty sure I won't be lucky enough to find .sql files on the clients, more likely .xml). Trying to keep calm here and not screw up any more than I already have (opened my one Windows client, "just to see", and now that client's DB is surely just as trashed), so any help at all would be greatly appreciated.
I could always wipe the DB and start over, but I'm praying I won't have to do that. Took a tremendous amount of time the last time I had to do that.