On Sunday 05 September 2010 10:29:29 you wrote: > On Saturday 04 September 2010 23:30:55 you wrote: > > On Saturday 04 September 2010 22:43:01 kashani wrote: > > > On 9/3/2010 10:53 PM, Jarry wrote: > > > > On 31. 8. 2010 20:30, Mick wrote: > > > >> I stop apach& mysql, run the update, dispatch-conf and then restart > > > >> them both. Haven't had problems since. > > > > > > > > I tried it that way: > > > > > > > > /etc/init.d/apache2 stop > > > > /etc/init.d/mysql stop > > > > emerge --ask --update --deep --newuse world > > > > emerge --depclean > > > > revdep-rebuild > > > > /etc/init.d/mysql start > > > > /etc/init.d/apache2 start > > > > > > > > Still the same: databases are gone, mysql is empty. Only users > > > > are there. This is strange: how can updating mysql from one stable > > > > version to higher stable cause complete loss of databases??? > > > > > > > > Jarry > > > > > > IIRC the default my.cnf changed for the worse in Gentoo's 5.1.x ebuild. > > > Try making a copy of your original my.cnf and put it into place once > > > you've upgraded. Else you may need to modify the mysql home and data > > > paths in the new my.cnf to reflect where the database are actually > > > installed. > > > > I just updated to mysql-5.1.50-r1 on a x86 box, ran revdep-rebuild which > > amidst others rebuilt apache and php and all is good now. dispatch-conf > > updated only a couple of lines on the config file. > > > > The default paths were not affected on any of the 5 mysql databases I'm > > running currently. > > Oops! I spake too soon! :-( > > I cannot access two databases. Both have #mysql50# infront of the name of > the original database. What does this mean? How do I fix it? Other > databases are fine, their names appearing without this strange prefix.
I found the solution: mysql > ALTER DATABASE `#mysql50#dbname` UPGRADE DATA DIRECTORY NAME; as described here: http://mattiasgeniar.be/2010/08/07/mysql-upgrade-to-5-1-database-name-prefix- mysql50/ I am not sure if this is related with the problem that the O/P had - disappearing databases. The symptoms when the database with the new prefix is used to drive a CMS, was an error by apache saying that the database does not exist. Of course, it does exist but its name now has a funny prefix. Running mysql -u root -p and SHOW DATABASES; led me to finding out that the name had changed. BTW, /var/lib/mysql still showed the non-prefixed db names. Anyway, the above link was very helpful in resolving my problem. -- Regards, Mick
signature.asc
Description: This is a digitally signed message part.