SET PASSWORD

Overview

Defines the password for the given user account.

USAGE

Common Syntax:

SET PASSWORD [FOR <user_name>] = PASSWORD('<new_password>')

DETAILS

This statement changes the password for a database user account.

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SET PASSWORD

To set a password for the current user account:

SET PASSWORD = PASSWORD('my_new_password');

To set a password for a specific user account:

SET PASSWORD FOR user1 = PASSWORD('user1_new_password');

To set a password for a specific user account at the specific host:

SET PASSWORD FOR 'user1'@'host1'= PASSWORD('user1_new_password');

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES