coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: ohfishing on November 03, 2004, 04:55:27 AM

Title: config.inc.php error it disappeared......
Post by: ohfishing on November 03, 2004, 04:55:27 AM
i have a strange problem with 132 ...... everything was fine, then i got the infamous upload error, after reading up on it i went to check my config.inc.php for she silly safe mode line, i saved the file before i opened it, then made the line addition, the tried the gallery , i got errors, i then opened back up the config.inc.php and the file is blank ??? im screwed becuase i have no idea how to fill out this sample form, where do i get all this information? can someone show me the correct way to write this stuff, i just dont understand <?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =                         'localhost';        // Your databaseserver
$CONFIG['dbuser'] =                         'root';        // Your mysql username
$CONFIG['dbpass'] =                         '';                // Your mysql password
$CONFIG['dbname'] =                         'coppermine';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg132_';
?>
   my gallery is at http://www.ohfishing.com/v-web/bulletin/phpBB2/cpg132/index.php    my database name is ohfishin_p_bb1  Im just unsure on the correct way this stuff must be entered
Title: Re: config.inc.php error it disappeared......
Post by: ohfishing on November 03, 2004, 04:56:29 AM
P.S.  idea - if i ran the db install again, would my information re appear? and would i lose 1000 pictures?
Title: Re: config.inc.php error it disappeared......
Post by: Joachim Müller on November 03, 2004, 05:16:25 AM
Quote from: ohfishing on November 03, 2004, 04:56:29 AM
P.S. idea - if i ran the db install again, would my information re appear? and would i lose 1000 pictures?
don't!
It should be quite easy to fill in the missing vars into the config.inc.php file, like this
Quote<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =                         'localhost';        // Your databaseserver
$CONFIG['dbuser'] =                         'root';        // Your mysql username
$CONFIG['dbpass'] =                         '';                // Your mysql password
$CONFIG['dbname'] =                         'ohfishin_p_bb1';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg132_';
?>
Joachim
Title: Re: config.inc.php error it disappeared......
Post by: ohfishing on November 03, 2004, 06:12:47 AM
GauGau thank you for the reply, i dont mean to be an idiot, but i dont know what to write...
Title: Re: config.inc.php error it disappeared......
Post by: Joachim Müller on November 03, 2004, 06:23:47 AM
you fill in the database details the same way you would when installing. What exactly is unclear for you?

Joachim
Title: Re: config.inc.php error it disappeared......
Post by: ohfishing on November 03, 2004, 06:38:21 AM
Wasnt that done automatically? i do not remember editing that ...... is it possible that db install proviided the information? I dont know what to write, do i use symbole? i dont know the awnsers to the "table prefix" etc
Title: Re: config.inc.php error it disappeared......
Post by: Joachim Müller on November 03, 2004, 07:56:41 AM
who installed coppermin for you. The person who installed should be able to answer.

Joachim
Title: Re: config.inc.php error it disappeared......
Post by: Casper on November 03, 2004, 11:30:21 AM
The prefix is easy to find, using your database tool.

Just open your database, and see what prefixes you have for the coppermine tables.
The other info is what you filled in in the install screen, regarding the name, password etc for the database.
Title: Re: config.inc.php error it disappeared......
Post by: ohfishing on November 03, 2004, 10:06:20 PM
Thanks guys it works !! god bless
Title: Re: config.inc.php error it disappeared......
Post by: ohfishing on November 04, 2004, 12:56:41 AM
.