Advanced search  

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

Pages: [1]   Go Down

Author Topic: mySQL Error: Table 'cpg133_albums'  (Read 10770 times)

0 Members and 1 Guest are viewing this topic.

flightless

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
mySQL Error: Table 'cpg133_albums'
« on: March 05, 2006, 08:48:22 am »

**I have already done a search for this in the forum, but found no related posts.**

I was having a few problems with the Coppermine database and decided to rerun the install.php. I then had to removed the "lock" file to get access to changing the database username and password.

Now I am getting the following error and I am not at all sure what to do next:

mySQL Error: Table 'cpg133_albums' already existson query ' CREATE TABLE cpg133_albums ( aid int(11) NOT NULL auto_increment, title varchar(255) NOT NULL default '', description text NOT NULL, visibility int(11) NOT NULL default '0', uploads enum('YES','NO') NOT NULL default 'NO', comments enum('YES','NO') NOT NULL default 'YES', votes enum('YES','NO') NOT NULL default 'YES', pos int(11) NOT NULL default '0', category int(11) NOT NULL default '0', pic_count int(11) NOT NULL default '0', thumb int(11) NOT NULL default '0', last_addition datetime NOT NULL default '0000-00-00 00:00:00', stat_uptodate enum('YES','NO') NOT NULL default 'NO', keyword VARCHAR( 50 ), PRIMARY KEY (aid), KEY alb_category (category) ) TYPE=MyISAM'


Any help will be appreciated.

Regards
Grounded.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: mySQL Error: Table 'cpg133_albums'
« Reply #1 on: March 05, 2006, 08:58:28 am »

Exactly what type of problems do you have? You wouldn't be able to run install if your database already exists because you would get that error that says those tables already exist. If all you wanted to do was change the db details, you didn't need to delete the lock file. Just edit include/config.inc.php

The reinstall concept doesn't really apply to this application.
Logged

flightless

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: mySQL Error: Table 'cpg133_albums'
« Reply #2 on: March 05, 2006, 09:18:42 am »

The database password was reset by my host. Had to change the details to get Coppermine to work.

What do I do now? (Seeing as I am now experiencing the problem as mentioned above.)
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: mySQL Error: Table 'cpg133_albums'
« Reply #3 on: March 05, 2006, 11:38:57 am »

Did you do as suggested? What exactly are you trying to do now?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: mySQL Error: Table 'cpg133_albums'
« Reply #4 on: March 05, 2006, 12:31:02 pm »

if the db data has been changed by your webhost, all you have to do is edit include/config.inc.php and enter the new mysql access data there. Undo any other changes you made (e.g. deleting install.lock). If you have questions, you should always say what you did when you got issues, so in your case the question should have read like this "my webhost has changed mysql data, so I tried to run install.php. As I got an error message that said I couldn't install, I deleted install.lock. Re-running install.php resulted in the error message XXX". Correct me if I'm wrong. Failing to post a full report what you did will result in additional support efforts needed to solve the issue, and as a result your gallery will remain inaccessible for a longer time.
Logged

flightless

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: mySQL Error: Table 'cpg133_albums'
« Reply #5 on: March 05, 2006, 01:09:33 pm »

Thank you GauGau, that is exactly how it happened.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: mySQL Error: Table 'cpg133_albums'
« Reply #6 on: March 05, 2006, 01:16:41 pm »

did our suggestions solve your issue then? You're suppossed to restore include/install.lock and edit include/config.inc.php with a plain-text editor.
Logged

flightless

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: mySQL Error: Table 'cpg133_albums'
« Reply #7 on: March 05, 2006, 07:43:59 pm »

Too late -

I deleted the lock file and do not have a copy of it to replace it.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: mySQL Error: Table 'cpg133_albums'
« Reply #8 on: March 05, 2006, 08:33:23 pm »

That's why you should be careful about deleting stuff without knowing what you're doing. Next time, you should save a backup.

You can recreate the file by making a new file in include and call it install.lock. In the file, put this:
Code: [Select]
locked
Logged

flightless

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: mySQL Error: Table 'cpg133_albums'
« Reply #9 on: March 05, 2006, 08:46:39 pm »

Thank you.

Yes ... we alll need to start learning somewhere ...  ???

I followed your advice, created the file and uploaded it.

I am now getting the following error when I go to the site:

Fatal error :
There was an error while processing a database query

I think I am missing a step somewhere, but not sure where.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: mySQL Error: Table 'cpg133_albums'
« Reply #10 on: March 06, 2006, 09:00:18 am »

enable debug_mode then to get a better error message and post the error message here (not the debug_output). To enable the debug mode, access your database directly using phpMyAdmin or similar, browse coppermine's config table and set the corresponding entry (debug_mode) to "1".
Logged

flightless

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: mySQL Error: Table 'cpg133_albums'
« Reply #11 on: March 08, 2006, 07:51:44 pm »

Thanks.

I followed your instructions and this is what I am getting now:

While executing query "SELECT * FROM cpg133_users WHERE user_id='0'AND user_active = 'YES' AND user_password_md5 != '' AND BINARY user_password_md5 = '*'" on 0

mySQL error: Unknown column 'user_password_md5' in 'where clause'
Logged

Nibbler

  • Guest
Re: mySQL Error: Table 'cpg133_albums'
« Reply #12 on: March 08, 2006, 08:43:43 pm »

Are you running a modified version of Coppermine ?
Logged

flightless

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: mySQL Error: Table 'cpg133_albums'
« Reply #13 on: March 08, 2006, 08:46:24 pm »

No.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: mySQL Error: Table 'cpg133_albums'
« Reply #14 on: March 09, 2006, 04:54:36 am »

md5 passwords were not available in v. 1.3x
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.