Skip to content


ERROR 1045 (28000): Access denied for user ‘root’@'localhost’ (using password: NO)

# mysql
ERROR 1045 (28000): Access denied for user ‘root’@'localhost’ (using password: NO)

Create a file .my.cnf in /root .

Insert below detail to .my.cnf

[client]
user=root
pass=mysql root password

VN:F [1.6.5_908]
Rating: 3.5/10 (4 votes cast)
VN:F [1.6.5_908]
Rating: 0 (from 0 votes)

Posted in LAMP.


One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. EinsamSoldat says

    hehe i assume that you are using bash in linux environment ;)

    VA:F [1.6.5_908]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.6.5_908]
    Rating: 0 (from 0 votes)



Some HTML is OK

or, reply to this post via trackback.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word