MariaDB/SQL/ALTER: Difference between revisions

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
No edit summary
No edit summary
Line 5: Line 5:
* [https://mariadb.com/kb/en/alter-user/ MariaDB Knowledge Base]
* [https://mariadb.com/kb/en/alter-user/ MariaDB Knowledge Base]
==Syntax==
==Syntax==
'''Note''': The following is incomplete.
'''Note''': The table below is incomplete.


<code>ALTER USER</code> [<code>IF EXISTS</code>]
<code>ALTER USER</code> [<code>IF EXISTS</code>]
Line 51: Line 51:
==Example==
==Example==
* <syntaxhighlight inline lang=SQL>ALTER USER 'rc-bot'@localhost IDENTIFIED BY 'YourPassword!';</syntaxhighlight>
* <syntaxhighlight inline lang=SQL>ALTER USER 'rc-bot'@localhost IDENTIFIED BY 'YourPassword!';</syntaxhighlight>
**  Note that the syntax

Revision as of 03:19, 17 February 2025

Template:Fmt/title

Reference

Syntax

Note: The table below is incomplete.

ALTER USER [IF EXISTS]

Template:Fmt/arg [, repeat...]
[REQUIRE {NONE | Template:Fmt/arg [[AND] repeat...]}]
[WITH Template:Fmt/arg [repeat...]]
Template:Fmt/arg/opt Template:Fmt/arg/opt
argument name value(s)
Template:Fmt/arg Template:Fmt/arg Template:Fmt/arg/opt
Template:Fmt/arg
(authentication option)
one of –
Template:Fmt/arg one of –
Template:Fmt/arg one of –
  • ACCOUNT LOCK
  • ACCOUNT UNLOCK
Template:Fmt/arg one of –
  • PASSWORD EXPIRE
  • PASSWORD EXPIRE DEFAULT
  • PASSWORD EXPIRE NEVER
  • PASSWORD EXPIRE INTERVAL N DAY
Template:Fmt/arg one of –
Template:Fmt/arg one of –

Example

  • ALTER USER 'rc-bot'@localhost IDENTIFIED BY 'YourPassword!';