I get this error when I try to access my database via the user 'spot'@'localhost'
identified by its password.
PermissionsError: (1045, "Access denied for user 'spot'@'localhost' (using password: YES)", None)
I create this user using these two lines:
create user 'spot'@'localhost' identified by 'fakepasswd';
grant all privileges on *.* to 'spot'@'localhost';
When I run this code locally, it works fine. When I run this code on a different machine, I get the aforementioned error.
Yet when I run show grants for 'spot'@'localhost'
on both machines, they both give me the same output:
GRANT ALL PRIVILEGES ON *.* TO 'spot'@'localhost' IDENTIFIED BY PASSWORD '*196BDEDE2AE4FRO4CA44C47D54D78478C7E2BD7B7'
How can I debug this access problem?