now, I can login the mysql with mysql -uroot -p
, then I input my password.
Then I try to do this.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
+--------------------+
But when I create database, i get an error:
mysql> CREATE DATABASE newdb;
ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'newdb'
this is my grants:
mysql> show grants;
+------------------------------------------+
| Grants for root@localhost |
+------------------------------------------+
| GRANT USAGE ON *.* TO 'root'@'localhost' |
+------------------------------------------+
on the terminal with MacOSX. Thanks for any help.