don't use hyphens

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
uptoeleven
Forum Members
Forum Members
Posts: 96
Joined: Sat Dec 04, 2004 10:30 pm

don't use hyphens

Post by uptoeleven »

This is a mysql issue, not specifically a CMS Made Simple issue but in as much as CMSMS runs on MySQL it is relevant.

I just did a major server upgrade (running Plesk on CentOS so did "yum update") and one of my CMSMS websites disappeared.

On looking for the database I found eventually that the database wasn't there... only I could kind of see it... and when I looked for the data I eventually found it BUT the table's name had been changed. Before my table was called "ebc-cms". Now it was called "#mysql50#ebc-cms".

So, if you have done yum update and one or more of your databases has disappeared and you can see it in there but it's called #mysql50#whatever-cms then this may work for you:

In phpmyadmin (or at a mysql command line if you're the adventurous sort) run ALTER DATABASE `#mysql50#whatever-cms` UPGRADE DATA DIRECTORY NAME;

This generates an error but it brings your database back.

What has happened is that hyphens are not necessarily safe for all file systems so mysql trashes your database. I realise that this makes little sense (if hyphens worked before they won't suddenly stop working because you upgraded mysql!) but it's not me that did it, it's mysql.

The moral of the story, please don't use hyphens in your database names as mysql doesn't like them and does mad stuff...
Locked

Return to “[locked] Installation, Setup and Upgrade”