coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: lostandfound on May 04, 2005, 03:37:04 PM

Title: Help! Critical error
Post by: lostandfound on May 04, 2005, 03:37:04 PM
...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?
Title: Re: Help! Critical error
Post by: lostandfound on May 04, 2005, 05:18:13 PM
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/
Title: Re: Help! Critical error
Post by: Joachim Müller on May 04, 2005, 05:20:08 PM
well, is the database 'lilkim_db' actually there? You can find out using a database tool like phpMyAdmin or by asking your webhost.
Title: Re: Help! Critical error
Post by: Nibbler on May 04, 2005, 05:26:43 PM
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>';