David Gingerich wrote:
> I have this in the error log:
> [Mon Mar 15 19:40:14 2010] An error was found on line '70' of script
> The error message passed to us was:
> 'DB Error: connect failed'
> A more detailed error message follows:
> ' [nativecode=No such file or directory] **
This might be a socket error, what happens if you change localhost to 127.0.0.1 ?
> A backtrace is available:
> require_once((string )'/Users/me/Sites/Eventum/init.php')
> Is this a permissions issue to the db?
> On 3/15/10 7:55 PM, "Bryan Alsdorf" <bryan@stripped> wrote:
>> Is there anything in the eventum error log? /eventum/log/errors.log
>> David Gingerich wrote:
>>> I need some help, I have run out of ideas on how to correct this and any
>>> pointers from the community would be helpful.
>>> Macbook (Intel), Snow Leopard 10.6.2, 4gb ram
>>> MySQL 5.5 Community Ed, PHP 5.3 (stock with 10.6), Apache (stock w/10.6),
>>> Eventum 2.2. I also have SugarCRM (Community Edition) loaded as well.
>>> The issue: Suddenly, I am get "Database Error: Problem connecting to the
>>> database server."
>>> I was able to load Eventum and populate it with a few items and now I get
>>> the db connection problem.
>>> I am able to logon to the database via MySQL Administrator and via command
>>> line console. I have stop/started MySQL, attempted to access with firewall
>>> off (testing if the firewall was blocking). Ran the port scan to make sure
>>> the 3306 was open (it was.) I am able to access my other php/MySQL apps,
>>> just not Eventum.
>>> My php.ini is default with exception of session.save path is set to:
>>> session.save_path = "/tmp"
>>> My Eventum config file looks like this:
>>> // definitions of SQL variables
>>> define('APP_SQL_DBTYPE', 'mysql');
>>> define('APP_SQL_DBHOST', 'localhost');
>>> define('APP_SQL_DBPORT', 3306);
>>> define('APP_SQL_DBNAME', 'eventum');
>>> define('APP_SQL_DBUSER', 'eventum');
>>> define('APP_SQL_DBPASS', '<password here>');
>>> My apache2 error log looks clean with exception of the dynCalendar.css
>>> Any ideas? What am I missing?
Bryan Alsdorf, Lead Web Developer
Monty Program, AB. http://askmonty.org