Need a sctipt to make a batch change to the same field in several mysql databases

  • There may be a function in there already but I use only the barest minimum of the features. So Please excuse my ignorance. I have a situation where I have to change the password of users with the name "admin" to something else.

    The people loading the databases were supposed to change it from the default in the first place but no one ever did.

    Now I have ... a Lot.. of MYSQL databases all separate that all have that huge security hole. They were all created with the single user of Admin and password of admin to make it easy for the first user to get in and change it.

    Instead, they created another account for themselves with their own name and password and gave it admin privileges.

    and just left the admin account with the admin password just sitting there. :>(

    I recently discovered that no one had even bothered to change the admin password. even if they were not going to use it, if they don't change it or delete that user (they did neither) it leave me with a security issue.

    I was hoping there would be a way to batch query every field in all the databases at once because there are at least 70 If I could run a script to fix them all at once to just change THAT username. Just removing the word "admin" from any where is it appears or changing it to anything else for now would be a huge improvement

    Thanks for any suggestions. If nothing else, it will be a long run in PHPMYADMIN to fix manually

  • basic 79842 (9/20/2013)


    There may be a function in there already but I use only the barest minimum of the features. So Please excuse my ignorance. I have a situation where I have to change the password of users with the name "admin" to something else.

    The people loading the databases were supposed to change it from the default in the first place but no one ever did.

    Now I have ... a Lot.. of MYSQL databases all separate that all have that huge security hole. They were all created with the single user of Admin and password of admin to make it easy for the first user to get in and change it.

    Instead, they created another account for themselves with their own name and password and gave it admin privileges.

    and just left the admin account with the admin password just sitting there. :>(

    I recently discovered that no one had even bothered to change the admin password. even if they were not going to use it, if they don't change it or delete that user (they did neither) it leave me with a security issue.

    I was hoping there would be a way to batch query every field in all the databases at once because there are at least 70 If I could run a script to fix them all at once to just change THAT username. Just removing the word "admin" from any where is it appears or changing it to anything else for now would be a huge improvement

    Thanks for any suggestions. If nothing else, it will be a long run in PHPMYADMIN to fix manually

    You are in a SQL Server forum! You will no doubt have more success if you head over to a dedicated MySQL forum.

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply