2011-11-13, 11:22
So with the explosion of everyone having fun with MySQL. I just propose one change: Always keep "$database" as the current version. Before upgrade archive off the previous version to "$database$version".
Some of us have backup scripts, mysql slave servers, tools and other fun stuff that gets broken every time the version number changes.
For example I run a nightly script to backup my database in case anything happens:
"mysqldump xbmc_video -u xbmc -p xbmc | gzip > xbmc_video.sql.gz"
Now every time the database number changes, this script is just going to be archiving off old data. However, in my proposed change. You save a backup to xbmc_video50 before moving to xbmc_video51. The "xbmc_video" is version 51, version 50 is safe and backed up, and everything works as intended.
Some of us have backup scripts, mysql slave servers, tools and other fun stuff that gets broken every time the version number changes.
For example I run a nightly script to backup my database in case anything happens:
"mysqldump xbmc_video -u xbmc -p xbmc | gzip > xbmc_video.sql.gz"
Now every time the database number changes, this script is just going to be archiving off old data. However, in my proposed change. You save a backup to xbmc_video50 before moving to xbmc_video51. The "xbmc_video" is version 51, version 50 is safe and backed up, and everything works as intended.