xbmc/xbmc — comment on commit 5ecc52506b8d068b11cf5a28341e2c7fde727be6
File:  line 0
By gleamicus:

I will say, I don't understand the logic behind creating a new database each time; it requires pretty significant permissions for the xbmc user (either pre-grant permissions for every database it's going to use, or grant, essentially, all privileges on all databases on the mysql server). It seems like you could just create new tables and then atomically rename them once they're all ready. This would would mean custom db names would still work and the xbmc user wouldn't need any extra permissions over what it has now.

Also, these changes are still completely broken for me. This is the new error:

23:30:34 T:8582576 DEBUG: Connecting to mysql:192.168.0.10:MyVideos56
23:30:34 T:8582576 ERROR: SQL: The table does not exist
Query: SELECT idVersion FROM version