Check out example codes for "change name of user mysql". It will help you in understanding the concepts better.

Code Example 1

RENAME USER old_user1 
TO new_user;

Learn ReactJs, React Native from akashmittal.com