全部產品
Search
文件中心

AnalyticDB:RENAME USER

更新時間:Jul 06, 2024

RENAME USER用於更改使用者名稱。

文法

RENAME USER old_user TO new_user
    [, old_user TO new_user] ...        

樣本

RENAME USER account2 TO account_2;
SELECT User, Host, Password FROM mysql.user;
+----------+-----+----------------------- -+
| User     | Host| Password                |  
+----------+-----+-------------------------+
| account2 | %   | *61f3777f02386598cda****|
| account_2| %   | *0fe79c07e168cabc99b****|