Page 1 of 1

DB Connection failure at session_start()

Posted: Tue Jul 18, 2017 6:26 pm
by sbatta
The server hard disk failed and was restored from backup. On starting Joomla 1.5 site (hosted on IIS, Win 2003), I get "Database Error: Unable to connect to the database:Could not connect to MySQL".

- Testing connection using a test.php file with parameters taken from configuration.php works.
- Checked user at mysql prompt, user and password are good, grants are present for the right DB.
- Digged into joomla code, worked in LAMP 6 years ago, found the call session_start() is causing the aforementioned exception in /joomla/session/session.php

Any ideas what's going on as to why the Db Connection is failing? Thanks for your help in advance.

Re: DB Connection failure at session_start()

Posted: Wed Jul 19, 2017 5:21 am
by bjsadmin
If you're still using Joomla! 1.5 then I would recommend you to get the latest version now. As per the error that I see it seems that the database does not have enough privileges of the database user!