When I try
sudo mysql -uroot -p
I get no errors, but it appears I'm not logged in as root, since:
SELECT USER(),CURRENT_USER();
returns:
+----------------+----------------+
| USER() | CURRENT_USER() |
+----------------+----------------+
| root@localhost | @localhost |
+----------------+----------------+
and I'm unable to perform any administrative commands like GRANT
or UPDATE
, I can only view information_schema
table.