I have installed MySQL. During the process of installation I was asked whether I want to determine a password for root user. Well, I entered a password.
Now I can access it through
mysql -u root -p
Well, it works.
The question is what will happen if I use just mysql command?
Well. This is what appears:
mysql>
I’m a bit confused. If I organize a password, how can I get access without entering it.
What privileges do I have in this case?
The fact that you can “enter” MySQL doesn’t mean that you have the ability to do anything. Try and create a database without supplying a password. Try and access a database without the password… I’m fairly sure that you won’t be able to do either.