How to set MYSQL root password ?

The command is

MySQL 5.7.6 and later:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
MySQL 5.7.5 and earlier:
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPass');

Comments

Popular posts from this blog

What is HTML? Complete Beginner’s Guide (with Examples)

5 Mini HTML Projects for Beginners

How to Add Images, Videos & Audio in HTML