I install mariadb in arch-linux. but I haven't got access to MySQL. I try this:

 mysql -u root -p
Enter password: 
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

I see very similar question, and test all of answers but I can't resolve it.


You should have been asked for the password during installation.

In case you do not remember your password, you can always reset your password.


first you must to start the service (/etc/init.d/mysqld start). if the installation didn't ask you the password simply press Enter.

  • 1
    Arch Linux uses systemd. There is no /etc/init.d. – michas Dec 24 '13 at 23:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.