How to reset administrator password of Coppermine photo gallery

How to reset administrator password of Coppermine photo gallery

In Coppermine photo gallery, user passwords can be easily reset using ‘Forgot password’ link in the gallery login page.

The new password generation link would be mailed to the email account corresponding to that user.

Coppermine photo gallery password reset

Coppermine photo gallery password reset


But in cases where the email server is not working or someone hacked your account and changed the settings, you may have to reset the password via backend.

Today we’ll see how to reset the administrative password for Coppermine photo gallery from the backend.

1. Identify the database

Coppermine photo gallery stores all the information in database. The first step to reset administrative password is to identify this database name.

The Coppermine configuration file is found in the ‘includes’ folder in the website gallery folder. The file name would be ‘’ and it contains the database details.


Coppermine photo gallery config file


Find the database name from the entry corresponding to the ‘dbname’ in the config file. This is the database which contains the table to update the user password.

2. Take a backup of the database

Before making any database updates, it is advisable to take a backup of the database using the ‘mysqladmin’ tool.

This is a precautionary measure to ensure that the gallery can be restored in case a wrong sql query ends up crashing the entire database and the gallery.

Get a FREE consultation

Do you spend all day answering technical support queries?

Wish you had more time to focus on your business? Let us help you.

We free up your time by taking care of your customers and servers. Our engineers monitor your servers 24/7, and support your customers over help desk, live chat and phone.

Talk to our technical support specialist today to know how we can keep your service top notch!


Bobcares provides Outsourced Hosting Support and Outsourced Server Management for online businesses. Our services include Hosting Support Services, server support, help desk support, live chat support and phone support.

Submit a Comment

Your email address will not be published. Required fields are marked *

Bobcares is a server management company that helps businesses deliver uninterrupted and secure online services. Our engineers manage close to 51,500 servers that include virtualized servers, cloud infrastructure, physical server clusters, and more.

Privacy Preference Center


    Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

    PHPSESSID - Preserves user session state across page requests.

    gdpr[consent_types] - Used to store user consents.

    gdpr[allowed_cookies] - Used to store user allowed cookies.

    PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]


    Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

    _ga - Preserves user session state across page requests.

    _gat - Used by Google Analytics to throttle request rate

    _gid - Registers a unique ID that is used to generate statistical data on how you use the website.

    smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

    _ga, _gat, _gid
    _ga, _gat, _gid


    Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

    IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

    test_cookie - Used to check if the user's browser supports cookies.

    1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

    NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

    DV - Google ad personalisation

    IDE, test_cookie, 1P_JAR, NID, DV, NID
    IDE, test_cookie
    1P_JAR, NID, DV