Answers for "mysql check root password"

SQL
6

mysql set root password

use mysql;

update user set authentication_string=PASSWORD("mynewpassword") where User='root';

flush privileges;

quit
Posted by: Guest on March-10-2020
0

how to know password of mysql root in linux terminal

mysql> use mysql;
​mysql> update user set authentication_string=password('NEWPASSWORD') where user='root';
​mysql> flush privileges;
​mysql> quit
Posted by: Guest on October-16-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language