MySQL Forums
Forum List  »  Install & Repo

Re: ERROR 1045 (28000): Access denied for user 'root'@'localhost'
Posted by: Peter Brawley
Date: October 11, 2016 09:00AM

> i still dont understand why i had this problem =!

> XXX:usr XXX$ sudo /usr/local/mysql/bin/mysql
> Password:
> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

Failed to provide a password.

> XXX:usr XXX$ sudo /usr/local/mysql/bin/mysql -u root -p (XXX
> -bash: syntax error near unexpected token `('

As the manual says, there should be no space between -p and the password. The parenthesis confuses bash.

> XXX:usr XXX$ sudo /usr/local/mysql/bin/mysql -u root -p XXX
> Enter password:

There should be no space between -p and the password.

Options: ReplyQuote


Subject
Written By
Posted
Re: ERROR 1045 (28000): Access denied for user 'root'@'localhost'
October 11, 2016 09:00AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.