快轉到主要內容

How to change password of Mariadb?

·63 字· loading · loading ·
目錄
SQL - 本文屬於一個選集。
§ : 本文

Syntax
#

1SET PASSWORD [FOR user] =
2    {
3        PASSWORD('some password')
4      | OLD_PASSWORD('some password')
5      | 'encrypted password'
6    }

Example
#

p.s. change the following example username root by your own.

1SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass');

or if you wanna delete the password from user:

1SET PASSWORD FOR 'root'@'localhost' = PASSWORD("");

References
#

Alpaca
作者
Alpaca
No one can stop my feet.
SQL - 本文屬於一個選集。
§ : 本文

相關文章