Go Back   Censura Forums > Censura 2.x > Censura 2.x Discussions, Feedback and Troubleshooting

Reply
 
Thread Tools Display Modes
  #1  
Old 5th March 2010, 12:28 AM
douglaskarr douglaskarr is offline
Junior Member
 
Join Date: Jan 2010
Location: Indianapolis, IN
Posts: 13
Question Where is the DB Config stored?

I copied over my configuration file but have no idea where it is. Could you tell me where they are so that I can update them? I'd highly recommend you add this step to the upgrade notes (write over all files except....)

Code:
Fatal error: Uncaught exception 'CensuraDAO_Exception' with message 'Could not connect to database.' in /nfs/c05/h02/mnt/73822/domains/marketingtechvendors.com/html/system/classes/Controller/ApplicationRegistry.php:75 Stack trace: #0 /nfs/c05/h02/mnt/73822/domains/marketingtechvendors.com/html/system/classes/Controller/ApplicationRegistry.php(63): Controller_ApplicationRegistry->_getDB('?new_link=true') #1 /nfs/c05/h02/mnt/73822/domains/marketingtechvendors.com/html/system/classes/CensuraDAO.php(69): Controller_ApplicationRegistry::getDB('?new_link=true') #2 /nfs/c05/h02/mnt/73822/domains/marketingtechvendors.com/html/system/classes/CensuraDAO.php(105): CensuraDAO->db() #3 /nfs/c05/h02/mnt/73822/domains/marketingtechvendors.com/html/system/classes/CensuraDAO.php(346): CensuraDAO->__get('_dbh') #4 /nfs/c05/h02/mnt/73822/domains/marketingtechvendors.com/html/system/classes/Models/DAO/CensuraSetting.php(91): CensuraDAO->query('?????SELECT????...') #5 /nfs/c05/h02/mnt/73822/domains/marketingtechvendors.com/html/system/classes in /nfs/c05/h02/mnt/73822/domains/marketingtechvendors.com/html/system/classes/Controller/ApplicationRegistry.php on line 75
Reply With Quote
  #2  
Old 6th March 2010, 07:35 AM
Darren's Avatar
Darren Darren is offline
Censura Product Manager
 
Join Date: Mar 2005
Location: England
Posts: 872
Default

Hi. I think Gavin has just responded to your ticket.

Db connection info is in /system/configs/config.php

The format should be like below, filling the relevant details

PHP Code:
<?php
$cfg
["general"]["database_type"] = "mysql";
$cfg["general"]["database_host"] = "localhost";
$cfg["general"]["database_user"] = "";
$cfg["general"]["database_pass"] = "";
$cfg["general"]["database_name"] = "";
$cfg["general"]["table_prefix"] = "";

$cfg["system"]["name"] = "Censura";

?>
__________________
Darren Lewis - Censura Product Manager

Please do not PM or eMail me for Censura Sales/Support Questions.
I will try to help via these Forums and the Support Centre.
Reply With Quote
Reply

Tags
connection, database, database connection, dbconn

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unclear Config Option Explanations peterlee Censura 2.0 Beta and RC Discussions 0 7th September 2007 10:11 AM
Where are custom templates stored? danika Censura 1.x Discussions, Feedback and Troubleshooting 4 17th April 2006 03:20 PM


All times are GMT. The time now is 09:09 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.