RENAME USER
Rename existing database accounts. This guide explains how to change a user's name while preserving their current privileges and properties.
Syntax
RENAME USER old_user TO new_user
[, old_user TO new_user] ...Description
Examples
CREATE USER 'donald', 'mickey';
RENAME USER 'donald' TO 'duck'@'localhost', 'mickey' TO 'mouse'@'localhost';RENAME USER 'foo'@'1.2.3.4' TO 'foo'@'10.20.30.40';Last updated
Was this helpful?

