Error In database Connection


#1

My Wordpress Site Was Working Perfectly But After Some Time It Says
And I Refresh The Page But It Says


#2

Hi @shivanshsingh000!

If you have changed your database password, you should go to /public_html/wp-config.php and update the password (DB_PASSWORD) from there as well.


#3

Where Can I Find To Change The Password


#4
  1. Go to File Manager

  2. Double click on file: /public_html/wp-config.php

  3. Go to line: define("DB_PASSWORD" "[ ... ]");

  4. Replace that line with this one: define("DB_PASSWORD" "YOUR PASSWORD HERE");

Replace “YOUR PASSWORD HERE” with your DB password :wink:


#5

Can I Also Change My Username from This


#6

Yes, you can change your database credentials from there. But make sure they are valid.

Provide only the ones listed here: 000webhost cPanel > Manage database


#7

Thanks It Works
And
I install Wampserver
And I Am Loging In In My Phpmyadmin Panel From My 000webhost Phpmyadmin panel Username And Password But It Shows


#8

No, WAMP works by default only locally (you can check this after URL: localhost), therefore you can’t access your database from WAMP.

Instead, you can manage your database using 000webhost’s Database Manager :wink:


#9

Ok Thanks For Your Help


#10