Jump to content

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


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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.