I wish to install fresh magento using the same database of magento During installation process when I give the same database name as of magento It shows error as"Database connection error". Is it possible to use the same old database or should I create a new one?


Answer Found. The method which I followed was correct.We can give the old database name & its details (username and password) during fresh installation to use the old database in new magento.Database error occured. But once I restarted the xampp server the error disappeared.It was that simple and that easy.


no you are wrong, you must never install new magento on top of your old database, in fact you wont be able to install it, or you will break it.

but instead you have to in magento change details in local.xml to connect to your old database and open your index page to trigger the updates...

  • How to do that? – Ramya Jan 21 '16 at 12:54
  • I didnt break my site. the new one is working perfectly fine. The result of my mistake is that my old store is redirecting to the new one. Can I not retrieve my old site? – Ramya Jan 21 '16 at 13:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.