Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: Strange Question - Password and Database  (Read 4257 times)

0 Members and 1 Guest are viewing this topic.

whitecom

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[Solved]: Strange Question - Password and Database
« on: March 19, 2009, 08:55:47 pm »

This is going to be a strange one.
haven't logged into my coppermine in about a year.
Forgot password and user name.
Tried the adminpass.php and didn't work.
So went into data bases.
Guess what?
I don't see a database in my CP for coppermine.
Is it possible that coppermine can run without one, or am I just going crazy?
I can login under an old user name I had, but admin is well forgotten.
Thanks
« Last Edit: March 20, 2009, 03:30:52 pm by Hein Traag »
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Strange Question - Password and Database
« Reply #1 on: March 20, 2009, 07:29:02 am »

CPG can not run without using a database. So if you stil see your site, which you did not post a link to, then it does have access to a database. Check your config file to see which database your cpg is connecting to. To reset your cpg admin password do a search on this board for " Admin password reset".

Kr,
Hein
Logged

whitecom

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Strange Question - Password and Database
« Reply #2 on: March 20, 2009, 11:16:38 am »

Thanks.
That was my assumption.
I will check config and see.
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Strange Question - Password and Database
« Reply #3 on: March 20, 2009, 12:25:21 pm »

Assumptions are the mother of all.. etc  ;). Have fun checking and have a nice weekend.
Logged

whitecom

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Strange Question - Password and Database
« Reply #4 on: March 20, 2009, 12:51:06 pm »

Ok...
When I open config I see this in it.
$redirect = "admin.php";
$message = <<< EOT
You are trying to access Coppermine's <a href="admin.php">config page</a> using an outdated link - the file config.php has been renamed to admin.php. You probably updated your site and haven't changed your theme as suggested in the <a href="docs/theme/">theme upgrade guide</a>.<br />
You are now being redirected to the actual page you were looking for.

When I look at the admin.php there is nor reference to the database name.
Any suggestions?
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Strange Question - Password and Database
« Reply #5 on: March 20, 2009, 01:08:20 pm »

From the CPG documentation..

Quote
during install, coppermine needs to create and write to the file "config.inc.php" in the "include" folder in order to store the necessary mySQL access data to run coppermine and to create and write the "install.lock" file, also in the same folder to prevent the installer from being run a second time after a successful install.
Logged

whitecom

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Strange Question - Password and Database
« Reply #6 on: March 20, 2009, 03:08:22 pm »

Thanks I was able to locate the database.

Now I just have to figure out how to see what it is.
(I am an idiot when it comes to DB's)

I came get to the DB through phpmyadmin.
I can see cpg14x_users, but how do I see the actual password?
I have never used phpmyadmin before and feeling lost.
Any help would be great.
Logged

whitecom

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Strange Question - Password and Database
« Reply #7 on: March 20, 2009, 03:14:53 pm »

Well,
I was able to export the info in a word doc.
That got me enough info to reset it.
Thanks
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 21 queries.