Alter an user in mysql
Rename a user:
mysql configurationintermediate
by MYSQL
13 views
Rename a user:
123456789101112131415
mysql>
RENAME USER 'dbatest' TO 'dbaprod';
Query OK, 0 rows affected (0.02 sec)
mysql>
ALTER USER 'dbaprod'@'%' IDENTIFIED BY 'dbaprod';
Query OK, 0 rows affected (0.01 sec)
mysql>
alter user 'dbaprod'@'%' with MAX_USER_CONNECTIONS 10;
Query OK, 0 rows affected (0.01 sec)
mysql>
alter user 'dbaprod'@'%' account lock;
Query OK, 0 rows affected (0.01 sec)
mysql>
alter user 'dbaprod'@'%' account unlock;
Query OK, 0 rows affected (0.01 sec)Please to add comments
No comments yet. Be the first to comment!