Jump to content

Issue with MySQL Username and Password stored in several places on a PHP webiste


ravikiran

Recommended Posts

Hi all,

 

I am a newbie to this website. I have an issue to which I require your assistance.

 

I have a website developed on Joomla by a company. They didn't follow the standard process while building the website.

 

MySQL connection strings are initiated in about 20 places around the website in several *.php files.

 

Now I need to change the password of our database. Is it OK if I do a "text search in all files" and replace the old password by new password?

 

Or is there any better solution to solve this issue?

 

Please suggest and help out of this fix.

 

Regards,

Ravi.

Now I need to change the password of our database. Is it OK if I do a "text search in all files" and replace the old password by new password?

 

I would be more inclined to create a single file to define your connection. Do a text search, find all places where a connection is made, replace it with a include your single connection file.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.