I installed MySQL
to my Mac (with MAMP installer) and have a problem. When I create a user with "@%" hostname this way:
CREATE USER 'test'@'%' IDENTIFIED BY 'test';
and I try to connect via CLI: mysql -u test -ptest
, I get this error:
ERROR 1045 (28000): Access denied for user 'test'@'localhost' (using password: YES)
But when I change hostname to localhost:
RENAME USER 'test'@'%' TO 'test'@'localhost';
it works.
Any idea how to make MySQL use the wildcard?
Thanks.