Issue: I got the above error while accessing MySQL as a user
root@afsal []# mysql -u test_tricks -p
Enter password:
ERROR 1045 (28000): Access denied for user ‘test_tricks’@’localhost’ (using password: YES)
root@afsal []#
Solution:
Give grant all privilege for the user to particular database
grant all privileges on test_wordpress.* to ‘test_tricks@localhost’ identified by ‘password’;
Note: test_wordpress -> database name
test_tricks -> mysql user
Password -> mysql user’s password
Recent Comments