I became in charge of a legacy website, which was written by someone else that is now not available, and has no CMS - just pure php
and html
. It's not written very well, but that's my problem...
Some of the content is stored in a mysql
db on localhost
. I want to access that db and retrieve all the data so that I can rewrite the whole site, with the existing content.
Is there a way to do so? I have the credentials to the mysql db (I found them buried in one of the php
files), and I tried to access it thorough phpmyadmin, following this technique, but the server refuses my connection ("access denied"). I suspect the problem might be that I simply replaced the localhost
in the credentials by the site's url. Any advice will be very welcome.