After several tweaks and watching the video below, I was able to get rid of the "Error connecting to the database" error, but now when I type in my web URL, it takes directly to installing wordpress again even I have an existing site there. Any idea? Under Wp-config.php, it shows $table_prefix = 'wp_'; Also, I do see all my databases under PhpMYAdmin, but when I click on those databases, I don't see any tables or anything (not sure if these databases supposed to be empty). I am still changing my databases from cPanel-MySQL. http://educhalk.org/blog/error-establishing-a-database-connection-how-to-fix-this-wordpress-error/