myql server name has a dash in it myql server name has a dash in it
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

myql server name has a dash in it

Started by auroramae, October 25, 2005, 10:22:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

auroramae

Hi,

coppermine says it can't connect to the database after changing files for a bridge to SMF.
I believe it is becasue the MySQL database name has a dash in it.
When I am editing the file the color coding won't change to look like it is acceptable.
This is what I am referring to:
define('SMF_DB_HOST', $server-mysql7); // The name of the database server

I tried an ascii substitution but it is only worse.
Do you have any suggestions about how to insert the name?

This is probably a dumb question...sorry

aurora

Nibbler

It's a common problem, there seems to be some confusion over what this bit means in the bridge file:


// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //


Apparently, it wasn't just a joke :)

auroramae

LOL--- you've probably answered that a million times - so sorry!!

I saw the line that said not to edit below this line --
But from reading the documentation  reason I thought I should be editing those lines

It says

Go to the bridge directory and open the file that corresponds to the bulletin board you use (eg. phpbb.inc.php if you use phpBB) with a text editor.

At the beginning of the file there are a number a configuration values that need to be set. For phpBB as an example they are the following :


// database configuration
define('PHPBB_DB_NAME','phpBB');     // The name of the database used by the board
define('PHPBB_BD_HOST','localhost'); // The name of the database server
define('PHPBB_DB_USERNAME','root');  // The username to use to connect to the    database
define('PHPBB_DB_PASSWORD','');      // The password to use to connect to the database

// The web path to your phpBB directory
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/phpBB2/');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE define('PHPBB_LOGOUT_GET', TRUE);


Then it says---

Modify them according to the configuration of your board and save the file.

So I modified-- and wrongly so!

THANK YOU!
aurora


Nibbler

The SMF bridge can work out the correct values for itself, the other bridges can't. The instructions are the same for all bridges though, so it needs to be generic.

auroramae

Thank you very much for the hlep.
SMF  -- should be called smart machines- instead of simple machines!!

It's working fine, although I am using the newest SMF so I changed the one line you suggested in another post.
I have noticed one little thing.  If you try navigating between the apps after a short idle time, you'll get a message to logout and back in.
This is so minor though.  I don't care.  I am so happy all the members were automatically added. It encourages use!

This software is AWESOME!! 




auroramae

In retrospect

I should say that those that put together the bridge are the SMART ones!