These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Mysql Error when restoring a server... on the new forum.
Any ideas why I got this? This is a base install of cent os with a new install of virtualmin...
===cut===
Creating MySQL database server1-smf .. Restore failed : SQL create database server1-smf failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-smf' at line 1
===cut===
This is just a shot in the dark, but are you using a different version of MySQL now than you were before? If so, you're almost guaranteed to have issues.
Kevin
Hey John,
Kevin's right, though it usually only causes trouble if you go backward from a newer MySQL to an older one. Restoring dumps from old versions to new usually goes fine. It's also possible (though less likely) that the backup was made on a MySQL that had extra features patched in and the new one does not (sometimes this can be particularly problematic).
--
Check out the forum guidelines!
BTW-It might be as simple as renaming the database. I dunno. It looks like it's compaining about the - in your database name. Maybe MySQL now disallows this character in database names.
--
Check out the forum guidelines!