
Usefull Mysql commands

You can change privileges using an SQL UPDATE command or the GRANT statement. If you are using SQL statements such as UPDATE or INSERT to update or set user passwords, be sure to use the PASSWORD() function to encrypt the password in the database. Finally, remember to FLUSH PRIVILEGES; for any changes you make so that they become effective:
UPDATE user SET Host=localhost, Password=PASSWORD(new_pass), Reload_priv=Y, Process_priv=Y WHERE User='admin'; FLUSH PRIVILEGES;




