title: Error establishing a database connection Wordpress
body: <p>I know there are a lot of similar posts with this but I can't seem to find the answer. I was uploading my WordPress files in the newly created directory in FileZilla. Everything was successful. I exported my database from localhost and imported it to cPanel. When I opened the Website URL given by ByetHost, it was a congratulation message. So I added a /wordpress in the URL and it redirected me to the Home Page. When I was trying to click another page, an error occured: "Error establishing a database connection". When I looked at the address bar, the link was still in localhost, like localhost/wordpress/hobby. I have changed my wp-config.php credentials with what ByetHost has given me. Even when logging in, the database error is still there. I tried doing the wp-admin/install.php, it told me I installed it already but the database error comes out when I try to login. Please help the beginner, thanks!</p>