mysql>update mysql.user set Password=PASSWORD('secret')where user='root';
mysql>flush privileges;
mysql>^D
service mysql stop
service mysql start
~OR~
service mysqld stop
service mysqld start
For MySQL 5.7: https://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html For some other v5.7 nodes, I had admin access via a different user’s login, so all I needed was this:
1
2
ALTER USER'root'@'localhost'IDENTIFIED BY'secret';
Launch System Preferences Select Users & Groups Select Login Options Select Join next to Network Account Server Select Open Directory Utility Click the lock and enter your password to make changes In the menu bar of Directory Utility, select Change Root Password Create a strong, unique password
If you need to use wget to obtain the contents of a web page, but that page has either Basic or Digest Authentication enabled, use the following syntax to gain access: wget –http-user=yourUserNameHere –http-password=yourSecretPasswordHere http://example.org/desired/path/ ~or~ wget http://yourUserNameHere:yourSecretPasswordHere@yourSite.com/desired/path/
Many thanks to my lovely wife Naomi for this excellent tip! iBank doesn’t make it easy to change the password you use for accounts you are downloading transactions from. I couldn’t find it within the options, or anything relevant within their documentation or Help options. It appears that it needs to be done through your […]
Quit Safari. Open Keychain Access (Applications / Utilities) Select Passwords on the left. Delete the keychain for that site. Relaunch Safari. From the Safari menu bar click Safari / Preferences then select the Autofill tab. Make sure: User names and passwords is selected. Navigate to that site. You should be prompted to save your login […]
Using mysqladmin on the command line If you have never set a root password for MySQL server, the server does not require a password at all for connecting as root.
1
2
$mysql-uroot
mysql>
To set the root password for the first time, use mysqladmin:
1
$mysqladmin-uroot password'NewPasswordHere'
However, if you want to change (or update) a root password, then […]
The ability to validate BEFORE a form is submitted greatly reduces end-user frustration by telling the user immediately what the issue is. The jQuery Validation plugin does just that. Here is a link to the plugin’s home page: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ This is a simple recipe for doing custom password validation: In the html head
There are many GREAT jQuery plugins out there, written by brilliant people, and freely distributed as open source. I have simply taken a few of them and glued them together: jQuery, jEditable and showPassword. MANY hours were spent putting all these parts together into a cohesive, functional unit, along with adding some enhanced error handling […]