3632
MariaDBERRORNotableAccess ControlHIGH confidence
MFA methods specified in invalid order
Production Risk
Low — ALTER USER fails; account authentication setup is not modified.
How to reproduce
trigger — this will error
trigger — this will error
ALTER USER 'user'@'%' ADD 3 FACTOR IDENTIFIED WITH authentication_fido; -- factor 2 not set
expected output
ERROR 3632 (HY000): MFA methods specified in invalid order.
Fix
Configure factors in order
Configure factors in order
ALTER USER 'user'@'%' ADD 2 FACTOR IDENTIFIED WITH authentication_fido; ALTER USER 'user'@'%' ADD 3 FACTOR IDENTIFIED WITH authentication_ldap_sasl;
Why this works
Adds factor 2 first, then factor 3, maintaining the required order.
What not to do
✕
Version notes
Sources
Official documentation ↗
MySQL 8.0 — 3632 ER_MFA_METHODS_INVALID_ORDER
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev