Important
The SingleStore 9.1 release candidate (RC) is available now. It will be promoted to general availability (GA) soon and at that time it will be renamed to SingleStore 10.
In the interim, SingleStore 9.1 RC can be used to preview, evaluate, and provide feedback on the new and upcoming features in SingleStore 10, while SingleStore 9.0 is recommended for production workloads.
SET PASSWORD
On this page
The SET PASSWORD command sets a user’s password.
Syntax
SET PASSWORD FOR 'username'@'host' = PASSWORD('password')
Remarks
-
'password'is a clear-text password.The PASSWORDfunction creates a hash of the clear-text password and assigns it to the user. -
This command allows users to change their own password.
You can change another user’s password with this command if you have SUPERorALTER USERprivilege. -
This command only changes the user’s password for that specific node, not for every node in the cluster.
-
Refer to the Permissions Matrix for the required permissions.
-
Refer to Configuring a Password Policy for details on how to configure a robust password policy.
Note
Once the password is changed, it cannot be viewed.
Examples
SET PASSWORD FOR 'joe'@'%' = PASSWORD('securePass');
To unset a password:
SET PASSWORD FOR 'joe'@'%' = PASSWORD('');
Last modified: