min_password_length option [database]

Sets the minimum length for new passwords in the database.

Allowed values

Integer

The value is in bytes. For single-byte character sets, this is the same as the number of characters.

Default

0 characters

Scope

Can only be set for the PUBLIC group. Takes effect immediately. DBA authority required.

Remarks

This option allows the database administrator to impose a minimum length on all new passwords for greater security. Existing passwords are not affected. Passwords have a maximum length of 255 bytes and are case sensitive.

See also
Example

Set the minimum length for new passwords to 6 bytes.

SET OPTION PUBLIC.min_password_length = 6;