The old version was mysql-5.5.32-something.el5.art
and the new one is mysql-5.5.33-20.el5.art
As usual, part of the upgrade script stops MySQL, does some stuff, then starts it again.
Well, during that part of the upgrade process, this error was displayed :
Code: Select all
Failed to ALTER DATABASE `#mysql50#database-name_mysql037dd079c45f2d82a7moreredacted` UPGRADE DATA DIRECTORY NAME
Error: Can't create database 'database-name_mysql037dd079c45f2d82a7moreredacted'; database exists
I'm after some guidance here as I'm not quite sure what's happening.
I'm guessing this might have something to do with the hyphen in the database name - isn't there some MySQL 5.5 thing where hyphens are not supported anymore or something like that? And I note it says #mysql50# at the start of the first line. So I'm further guessing that this database was created when MySQL 5.x was installed, which was happy with hyphens, and that the "mysql_upgrade" script which I believe gets run as part of the installation/upgrade script in the atomic rpms is choking on the database name or something?
The database in question still works fine.
What's the best option to resolve it? Ignore it? Dump the database, create a new one without a hyphen in the name and restore it? Or something else?
I'm also curious to know why has this error has only just cropped up now - but maybe that's a red herring -- I'm not 100% certain that I've personally upgrade MySQL on this particular system before now so maybe that's all there is to it, and it isn't a new error.
EDIT:
Yup. Looks like I was right about the cause. Just noticed this in MySQL.log:
Code: Select all
[ERROR] Invalid (old?) table or database name 'database-name_mysql037dd079c45f2d82a7moreredacted'