coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: emjoven on September 04, 2006, 08:07:50 PM

Title: site is down due to Table 'dbasename.cpg148_config' doesn't exist
Post by: emjoven on September 04, 2006, 08:07:50 PM
Fatal error :

While executing query "SELECT * FROM cpg148_config" on 0

mySQL error: Table 'dpino3_coppermine.cpg148_config' doesn't exist


this is what you will see when you visit my site http://www.dpinoyweb.com/celebgallery/

What is wrong here?
Title: Re: site is down due to Table 'dbasename.cpg148_config' doesn't exist
Post by: Joachim Müller on September 04, 2006, 08:24:54 PM
Did you verify that the table the error message complains about is actually there?
Title: Re: site is down due to Table 'dbasename.cpg148_config' doesn't exist
Post by: emjoven on September 04, 2006, 08:27:57 PM
I opened the sql database via phpadmin, the table exist and it has contents. That's why I'm puzzled with the error.
Title: Re: site is down due to Table 'dbasename.cpg148_config' doesn't exist
Post by: Joachim Müller on September 04, 2006, 08:30:16 PM
Make sure that the permissions of the mySQL user specified in your_coppermine_gallery/include/config.inc.php haven't changed.
Title: Re: site is down due to Table 'dbasename.cpg148_config' doesn't exist
Post by: emjoven on September 04, 2006, 08:38:05 PM
<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =  'localhost';        // Your database server
$CONFIG['dbuser'] =    'dpxxx_xxxxxxx';        // Your mysql username
$CONFIG['dbpass'] =    'xxxxxxx';                // Your mysql password
$CONFIG['dbname'] =   'dpxxx_xxxxxxxxxx';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =  'cpg148_';
?>

This is the content of my CONFIG.INC.PHP file, just put "x" on the important info.  I don't see any discrepancy here.
Title: Re: site is down due to Table 'dbasename.cpg148_config' doesn't exist
Post by: Joachim Müller on September 04, 2006, 09:13:46 PM
Did you check the permissions of your mySQL user as suggested? You don't do this in coppermine. Usually, your webhost will provide you with some setup panel that will enable you to create and edit a mySQL user. If this is not the case, you may have to ask your webhost for support.
Title: Re: site is down due to Table 'dbasename.cpg148_config' doesn't exist
Post by: emjoven on September 04, 2006, 09:21:30 PM
I'm talking to my hosting support now. will be restoring the sql database this might solve the problem. will keep you posted.

thank you for your reply.