When I try to create a database I get an error
Access denied for user '@'localhost
to database emp
When I query show grants
mysql> show grants;
+--------------------------------------+
| Grants for @localhost |
+--------------------------------------+
| GRANT USAGE ON *.* TO ''@'localhost' |
+--------------------------------------+
1 row in set (0.00 sec)
I'm not able to access as user root.
There is no username that I found.
Also when I am trying to create new user get error as
mysql> create user 'user1'@'localhost';
ERROR 1227 (42000): Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation
How do I create new user and database.