Mysql logging in even without providing password [Solved]

Mysql logging in even without providing password


Setp 1

Command  SELECT User,Host FROM mysql.user;


mysql> SELECT User,Host FROM mysql.user;
+------------------+-----------+
| User             | Host      |
+------------------+-----------+
| root                        | %         |
| debian-sys-maint   | localhost |
| mysql.session        | localhost |
| mysql.sys              | localhost |
| phpmyadmin         | localhost |
| ubuntu                  | localhost |
+------------------+-----------+

Then
DROP USER 'root'@'localhost';

 FLUSH PRIVILEGES;

Comments

Popular posts from this blog

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

HTML Forms — Input, Label, Button & Validation (Explained Like a Teacher With Examples)

Difference Between HTML and HTML5 (2025 Explained) | Features, Advantages & Comparison Table