On the RDC at IU, how do I change my MySQL password?
On Indiana University's Research Database Complex (RDC),
by default the variable SQL_SAFE_UPDATES is set to 1 to
help prevent accidental data loss. To change your MySQL password on
the RDC, temporarily set this variable to 0, and then
return it to 1 when you're finished:
- On the RDC, at the command prompt, enter: mysql --defaults-file=~/.my.cnf -u root -p
- Enter your password when prompted.
- At the
mysqlprompt, enter: SET SQL_SAFE_UPDATES=0; - Enter:
UPDATE mysql.user SET password = PASSWORD('testpw') where user='root';
Replace
testpwwith your new password. - Enter:
FLUSH PRIVILEGES;
The message that appears will indicate that there was one warning; this is okay.
- Enter: SET SQL_SAFE_UPDATES=1;
This is document axry in domain all.
Last modified on April 17, 2011.
Last modified on April 17, 2011.







