Help! Critical error Help! Critical error
 

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

Help! Critical error

Started by lostandfound, May 04, 2005, 03:37:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lostandfound

...My host compomized the server and did a reinstallation with Debian.

and now the gallery doesn't work:

http://www.lilkimzone.com/gallery/

I get this error message:

Coppermine critical error:
Unable to connect to database !

MySQL said: Incorrect database name 'lilkim_db '


According to my host the name and database still excist + the old forum works.


What could be wrong?

lostandfound

http://forum.coppermine-gallery.net/index.php?topic=9737.0

I think i have the same problem as the guy in the topic above ...

I fixed the space error in config.inc.php....from... 'lilkim_db ' to 'lilkim_db'

but i still get the same error message:

Coppermine critical error:
Unable to connect to database !

MySQL said: Unknown database 'lilkim_db'


http://www.lilkimzone.com/gallery/

Joachim Müller

well, is the database 'lilkim_db' actually there? You can find out using a database tool like phpMyAdmin or by asking your webhost.

Nibbler

Put this into a php file, upload it and run it from your browser. It will show you all the databases that are availble for the details you specify. Just add your details in the first line.

<?php

$conn 
mysql_connect('localhost''your db username here''your db password here');
echo 
is_resource($conn) ? '<p>Connected</p>' '<p>Connect failed</p>';
$db mysql_list_dbs($conn);
echo 
is_resource($db) ? '<p>Got db list</p>' '<p>db list failed</p>';
echo 
'<ul>';
while (
$row mysql_fetch_row($db)){
echo "<li>{$row[0]}</li>";
}
echo 
'</ul>';