config.inc.php error it disappeared...... config.inc.php error it disappeared......
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

config.inc.php error it disappeared......

Started by ohfishing, November 03, 2004, 04:55:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ohfishing

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
OHfishing

ohfishing

P.S.  idea - if i ran the db install again, would my information re appear? and would i lose 1000 pictures?
OHfishing

Joachim Müller

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

ohfishing

GauGau thank you for the reply, i dont mean to be an idiot, but i dont know what to write...
OHfishing

Joachim Müller

you fill in the database details the same way you would when installing. What exactly is unclear for you?

Joachim

ohfishing

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
OHfishing

Joachim Müller

who installed coppermin for you. The person who installed should be able to answer.

Joachim

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

ohfishing

#8
Thanks guys it works !! god bless
OHfishing

ohfishing

#9
.
OHfishing