I just created a user account for myself to access only the MariaDB database I just created ("publications") using XAMPP on a Windows 10 PC.
I did this by using the code at the end of this post.
I then try to sign into the database by using this path and command in the command prompt:
C:\xampp\mysql\bin\mysql -u steve -p
It then prompts me for a password, but when I enter the password I get the error
"ERROR 1045 (28000): Access denied for user 'steve'@'localhost' (using password: YES)"
I know the password is correct because I created it.
Note that this is NOT a root-level password; it should only work for the "publications" database.
Strangely, I can just bypass the password requirement by hitting "enter," but I want access to this database to be password-protected, but when I DO enter the password, I get the error!
Why am I getting this error? Do I need to reset my password? If so, how?
Thanks!
Code I entered:
GRANT ALL ON publications.* TO 'steve@localhost'
IDENTIFIED BY 'password';