Back
You can simply execute the following query from the MySQL console:
UPDATE mysql.user SET user='newusername', password=PASSWORD('newpassword') WHERE user='root'; FLUSH PRIVILEGES;
Join the SQL Course by Intellipaat fast, to Learn SQL concepts in detail and get certified.
Watch the below MySQL video tutorial to gain more knowledge on MySQL...
31k questions
32.8k answers
501 comments
693 users