Wednesday, 25 July 2018

MySQL: How to change the default name of root User?

When you install the MySQL, the root user is a default, and even most of the people also set the password ‘root’.
For MySQL, username and password like root-root is a very common so hackers can easily try this combination and can attack in your database system.
After the installation of MySQL Server, please don’t forget to rename the name of the root user.
In this post, I am sharing required steps for changing the name of the root user.
Connect MySQL and check the list of users:
Rename the ‘root’ user to ‘anvesh’:
Confirm the new user name:
Now, flush the privileges to make these changes happen:
Now, connect with new user name:

0 comments:

Post a Comment