If you just run mysql command under root user you will be granted access without asked for password, because socket authentication enabled for root@localhost.
Short way to solve
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'new-password';
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you just run mysql command under root user you will be granted access without asked for password, because socket authentication enabled for root@localhost.
Short way to solve
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'new-password';