I am having a primary website and I am trying to host a new website in my CPanel Ultimate hosting plan.
I configured the addon domain and uploaded all files via ftp in the new directory.
Also i have uploaded the database and created the user,modified wp_options table.
Cross verified by a test file and connection is up.
Still I am getting error "Error establishing a database connection" when opening home page.
I dont know what I am doing wrong. Please suggest if something else is required
Solved! Go to Solution.