2007-02-23, 02:29 AM
I am upgrading this weekend to 1.2.3 from 1.2.2 and I was wondering. I edited the header and footer files. I also put in some meta tags and such. Do I overwrite the files as normal and add those back or what do I do?
Warning: main(/homepages/6/d195358843/htdocs/inc/db_.php) [function.main]: failed to open stream: No such file or directory in /homepages/6/d195358843/htdocs/install/upgrade.php on line 25
Fatal error: main() [function.require]: Failed opening required '/homepages/6/d195358843/htdocs/inc/db_.php' (include_path='.:/usr/local/lib/php') in /homepages/6/d195358843/htdocs/install/upgrade.php on line 25
DrPoodle Wrote:Here is the code you need to put in the new config.php. Make sure you edit the database configuration variables to what they should be...
<?php /** * Daatabase configuration */ $config['dbtype'] = 'mysql'; $config['hostname'] = 'localhost'; $config['username'] = ''; $config['password'] = ''; $config['database'] = ''; $config['table_prefix'] = 'mybb_'; /** * Admin CP directory * For security reasons, it is recommended you * rename your Admin CP directory. You then need * to adjust the value below to point to the * new directory. */ $config['admin_dir'] = 'admin'; /** * Hide all Admin CP links * If you wish to hide all Admin CP links * on the front end of the board after * renaming your Admin CP directory, set this * to 1. */ $config['hide_admin_links'] = 0; /** * Data-cache configuration * The data cache is a temporary cache * of the most commonly accessed data in MyBB. * By default, the database is used to store this data. * * If you wish to use the file system (inc/cache directory) * you can change the value below to 'files' from 'db'. */ $config['cache_store'] = 'db'; /** * Super Administrators * A comma separated list of user IDs who cannot * be edited, deleted or banned in the Admin CP. * The administrator permissions for these users * cannot be altered either. */ $config['super_admins'] = '1'; ?>
So change all of these to what they should be to connect to your database:
$config['dbtype'] = 'mysql';
$config['hostname'] = 'localhost';
$config['username'] = '';
$config['password'] = '';
$config['database'] = '';
$config['table_prefix'] = 'mybb_';