Loading...
 
Architecture / Installation

Architecture / Installation


stable wiki can no longer find MySQL

posts: 6

I have been running version 1.7 for over a month now with no problems. Today I tried to get into my site and I am getting this message:

"Unable to login to the MySQL database 'tiki' on 'localhost' as user 'root'
Go here to begin the installation process, if you haven't done so already.
DB Error: no such database"

I rebooted my server (Redhat 7.3) with no change.
The database seems to be fine if I type:
"mysql -u root -h localhost" I get right and I can type "use tiki;" and its ok.
I have not installed anything new, I have plenty of disk space.
I will continue to poke around but if anybody else has run into this I would appreciate any suggestions!

Thank you,

~Hologram

posts: 2881 United Kingdom

sounds like the db/local.php file has gone missing in action.

Damian


posts: 6

Strange... My php.ini file was modified two days ago but I certainly didn't do it and I am the only user on this box.
Thanks Damian I will try and figure out what changed in the file.

    • update***


Yum did an auto update and the following files changed:
10/08/04 05:37:25 Updated: php-imap.i386
10/08/04 05:37:25 Updated: php.i386
10/08/04 05:37:25 Updated: php-ldap.i386
10/08/04 05:37:25 Updated: php-pgsql.i386
10/08/04 05:37:25 Updated: php-devel.i386

I examined the php.ini file and nothing seems to be obviously different.


~Hologram

posts: 2881 United Kingdom
php-mysql not updated?
posts: 6

Nope, which makes this even more confusing!
At least I know I have not been hacked.
I was a bit nervous until I looked at the Yum logs.
Well one solution would be is to turn off yum and recompile PHP at least that will get my site up and running again. I hope...

posts: 2881 United Kingdom

From the output on your log to me it suggests that PHP was upgraded to a new version, along with ldap, postgres, devel and imap, but nothing about mysql.

yum install php-mysql ??

Damian

posts: 6

From what I can see nothing about MySQL was changed.
Luckily I had kept my PHP build tree around and after doing a 'make install' it fixed my site. Of course the next time Yum runs it will mess it up again!

I run Linux under VMware, so I made a backup of the session so I can reproduce the problem.