---
title: "Changing WordPress admin credentials"
canonical_url: "https://www.zone.lv/help/kb/changing-wordpress-admin-credentials/"
post_type: "ht_kb"
published: "2023-03-27T07:32:54+00:00"
modified: "2026-02-13T10:10:09+00:00"
language: "en"
author: "Hasso"
taxonomies:
  ht_kb_category:
    - name: "MariaDB / MySQL"
      url: "https://www.zone.lv/help/kb-categories/mariadb-mysql-en/"
    - name: "Technical"
      url: "https://www.zone.lv/help/kb-categories/technical-en/"
    - name: "Wordpress"
      url: "https://www.zone.lv/help/kb-categories/wordpress-en/"
  ht_kb_tag:
    - name: "CMS"
      url: "https://www.zone.lv/help/kb-tags/cms-en/"
    - name: "credentials"
      url: "https://www.zone.lv/help/kb-tags/credentials/"
    - name: "db"
      url: "https://www.zone.lv/help/kb-tags/db/"
    - name: "db_password"
      url: "https://www.zone.lv/help/kb-tags/db_password/"
    - name: "db_user"
      url: "https://www.zone.lv/help/kb-tags/db_user/"
    - name: "mariadb"
      url: "https://www.zone.lv/help/kb-tags/mariadb-en/"
    - name: "mysql"
      url: "https://www.zone.lv/help/kb-tags/mysql-en/"
    - name: "myzone"
      url: "https://www.zone.lv/help/kb-tags/myzone-eng/"
    - name: "password"
      url: "https://www.zone.lv/help/kb-tags/password/"
    - name: "phpmyadmin"
      url: "https://www.zone.lv/help/kb-tags/phpmyadmin-en/"
    - name: "wordpress"
      url: "https://www.zone.lv/help/kb-tags/wordpress-en/"
---

# Changing WordPress admin credentials

## Changing the administrator password via phpMyAdmin

In case the ”forgot password” link on the WordPress login page fails, you can change the admin account password directly from the WordPress database.

 ### Database admin credentials

 You’ll need the user credentials to access the database, you can find the credentials within `wp-config.php` by accessing WebFTP or FTP. Enter `My Zone` -&gt;`Services Overview` -&gt; `Files` (this opens WebFTP). ![](https://www.zone.lv/static/sites/5/files_ov-1.png) Open your WordPress directory( **htdocs** by default). [![](https://www.zone.lv/static/sites/5/WEBFTP1-e1675067502530.png)](?hkb-redirect&nonce=5da8218279&check=29eq9&redirect=https%3A%2F%2Fwww.zone.lv%2Fhelp%2Fkb%2F301-suunamine-htaccessiga%2Fwebftp1%2F&otype=unknown&oid=0&source=block-content)Open the file `wp-config.php` (right click and `Edit`). [![](https://www.zone.lv/static/sites/5/WP_comfig_PHP_EDIT-e1675067540311.png)](?hkb-redirect&nonce=5da8218279&check=2rckp&redirect=https%3A%2F%2Fwww.zone.lv%2Fhelp%2Fkb%2Fwordpressi-url-i-vahetamine-ajutise-aadressi-vastu%2Fwp_comfig_php_edit%2F&otype=unknown&oid=0&source=block-content) The database username and password can be found between `define()` functions. Username as `DB_USER` and password as `DB_PASSWORD`, the credentials will be seperated with **‘** and **“**.  Temporarily copy the credentials to a separate text file for easy access.

  [![](https://www.zone.lv/static/sites/5/wpcredentials4.png)](?hkb-redirect&nonce=5da8218279&check=7jj20&redirect=https%3A%2F%2Fwww.zone.lv%2Fhelp%2Fkb%2Fchanging-wordpress-admin-credentials%2Fwpcredentials4%2F&otype=unknown&oid=0&source=block-content)### Accessing the database (phpMyAdmin)

 The easiest way to connect to a database is through the phpMyAdmin panel.

If you still have the `My Zone` control panel open in a separate tab, you can access the phpMyAdmin panel from there by selecting `Databases` from the left web hosting management menu and under it `phpMyAdmin`.

If you have already managed to close `My Zone`, direct link to phpMyAdmin: https://pma.ams01.zone.eu/

When following a direct link, first enter your domain name without the www prefix (for example, domain.ee) and click `Log in`

[![](https://www.zone.lv/static/sites/5/wpcredentials5-1.png)](?hkb-redirect&nonce=5da8218279&check=43ni1&redirect=https%3A%2F%2Fwww.zone.lv%2Fhelp%2Fkb%2Fchanging-wordpress-admin-credentials%2Fwpcredentials5-2%2F&otype=unknown&oid=0&source=block-content)

Enter the database username and password (MySQL) that you copied from the wp-config.php file.

[![](https://www.zone.lv/static/sites/5/wpcredentials6.png)](?hkb-redirect&nonce=5da8218279&check=72gum&redirect=https%3A%2F%2Fwww.zone.lv%2Fhelp%2Fkb%2Fchanging-wordpress-admin-credentials%2Fwpcredentials6%2F&otype=unknown&oid=0&source=block-content)

### Changing the user password

In **phpMyAdmin c**lick on the database name in the left block, then select `wp_users` in the following menu (tables can have a different prefix instead of wp).

In the admin user account row, click `Edit`.

If you installed WordPress on the server via Zone+, the username of the administrator account is `zoneplus`. If you install WordPress manually, this may be `admin`.

![](https://www.zone.lv/static/sites/5/pma1-1.png)

Find the `user_pass` row in the account edit table and select `MD5` from the drop-down menu in the `Function` column. Then enter the new password in the text field in the `Value` column and confirm the change with the `Function` button in the lower right corner of the page.

Finally, try logging into WordPress with your new password.

## Changing the administrator password in the WordPress dashboard

In order to change password in the WordPress dashboard, hover over your username in the top right corner and choose `Edit Profile`.

[![](https://www.zone.lv/static/sites/5/eng1_wp-admin-password.png)](?hkb-redirect&nonce=5da8218279&check=63b7j&redirect=https%3A%2F%2Fwww.zone.lv%2Fhelp%2Fen%2Fkb%2Fchanging-wordpress-admin-credentials-via-phpmyadmin%2Feng1_wp-admin-password%2F&otype=unknown&oid=0&source=block-content)

On the profile page, scroll down the page until you find the `Set New Password` button under `Account Management`.

[![](https://www.zone.lv/static/sites/5/eng2_wp-admin-password.png)](?hkb-redirect&nonce=5da8218279&check=22i5s&redirect=https%3A%2F%2Fwww.zone.lv%2Fhelp%2Fen%2Fkb%2Fchanging-wordpress-admin-credentials-via-phpmyadmin%2Feng2_wp-admin-password%2F&otype=unknown&oid=0&source=block-content)

When you click `Set New Password`, a window will appear where you can enter a new password or use the password provided by WordPress. After entering the desired password, click the `Update Profile`.

[![](https://www.zone.lv/static/sites/5/eng3_wp-admin-password.png)](?hkb-redirect&nonce=5da8218279&check=5mnbu&redirect=https%3A%2F%2Fwww.zone.lv%2Fhelp%2Fen%2Fkb%2Fchanging-wordpress-admin-credentials-via-phpmyadmin%2Feng3_wp-admin-password%2F&otype=unknown&oid=0&source=block-content)

## Changing password using the link to log in to the admin panel

To change your WordPress user password, go to https://yourdomain.ee/wp-login.php and replace “yourdomain.ee” with your domain name. On the login page, click on `Lost your password?`.

[![](https://www.zone.lv/static/sites/5/eng21wp-admin-password.png)](?hkb-redirect&nonce=5da8218279&check=68otl&redirect=https%3A%2F%2Fwww.zone.lv%2Fhelp%2Fen%2Fkb%2Fchanging-wordpress-admin-credentials-via-phpmyadmin%2Feng21wp-admin-password%2F&otype=unknown&oid=0&source=block-content)

Next, a field will appear where you need to enter either your WordPress username or the email address associated with the application.

[![](https://www.zone.lv/static/sites/5/eng22wp-admin-password.png)](?hkb-redirect&nonce=5da8218279&check=26qhl&redirect=https%3A%2F%2Fwww.zone.lv%2Fhelp%2Fen%2Fkb%2Fchanging-wordpress-admin-credentials-via-phpmyadmin%2Feng22wp-admin-password%2F&otype=unknown&oid=0&source=block-content)

When you click on the `Get New Password` button, and if the correct username or email address has been entered, an email will be sent with a link to assign a new password .

[![](https://www.zone.lv/static/sites/5/eng23wp-admin-password.png)](?hkb-redirect&nonce=5da8218279&check=58gjg&redirect=https%3A%2F%2Fwww.zone.lv%2Fhelp%2Fen%2Fkb%2Fchanging-wordpress-admin-credentials-via-phpmyadmin%2Feng23wp-admin-password%2F&otype=unknown&oid=0&source=block-content)
