Last modified: 2010-05-15 15:38:33 UTC
I have to servers, server1 and server2. Both servers run apache and server1
runs mysql. I have a mediawiki (mediawiki-1.4.6) setup on server1 for company A.
I installed the newest stable release (mediawiki-1.5.6) on server2 for another
company. I installed it to the same database server on server1, but different
username, password and database name. Installation went fine for the new wiki
however my old version for company A stop working I recieved this error:
Fatal error: Call to a member function on a non-object in ObjectCache.php on
Upon investigation I saw this in my db tables of mysql database.
select Host, Db, User from db order by Db;
| % | musicmsn_wiki | mbvr |
| localhost | musicmsn_wiki | mbvr |
| localhost.localdomain | musicmsn_wiki | mbvr |
| % | musicmsn_wiki | msndb |
| localhost | musicmsn_wiki | msndb |
| localhost.localdomain | musicmsn_wiki | msndb |
for User 'mbvr' the db should have been 'wikidb'
I had wiki installer setup my new user 'msndb'. Somehow it collebered 'mbvr'
I set the database back:
update db set Db='wikidb' where User='mbvr' and Db='musicmsn_wiki';
flushed privileges and it was working again