Loading...
 
Skip to main content

Features / Usability


"Unable to connect to database" error in 3.3

I upgraded my tikiwiki to 3.3 on november 1.

The next day when I tried to access the site, it threw the error "Unable to connect to database". I changed the mysql password for my hosts and in the db/local.php file and tried again - it worked.

However, every 6 days or so from that time it has given the error while trying to access the site. If I change the passwords like I did above, it works again, only to give the error a few days later.

Is there a condition that is requiring me to change my password every few days, or what is wrong, and how can I solve it?

Thanks.

I just installed a new 5.0RC1 and I get the same problem during installation. I changed passwords, did several reload(flush) privileges to be sure, but nothing happens. I'm quite sure that it isn't a question of passworsd as when tiki-install script runs and I input a wrong password, it refuses to go the the next page and says access denied instead. I tried to import directly wiki.sql, and it created the 223 tables. But when I click on reinstall database button, I get again the same "unable to connect" message. Any ID ?

When you enter the database host, are you running a site on a VPS our Dedicated SErver? Are you entering localhost?

I don't know if this is related but I did get a very similar issue a few months back and someone suggested to me to try entering 127.0.0.1 instead of localhost and that solved my problem.

I don't know if this has anything to do with your issues but I thought I would share my problem in the hopes that it might be similar to what you are having.

Best of luck