Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Need a sctipt to make a batch change to the same field in several mysql databases Expand / Collapse
Author
Message
Posted Friday, September 20, 2013 8:25 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, September 21, 2013 12:55 AM
Points: 2, Visits: 4
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
Post #1497093
Posted Friday, September 20, 2013 11:42 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 11:23 AM
Points: 5,047, Visits: 11,799
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.



Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

When you ask a question (and please do ask a question: "My T-SQL does not work" just doesn't cut it), please provide enough information for us to understand its context.
Post #1497111
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse