Page 2 of 2

Re: unable to get past: sudo /usr/local/mysql/bin/mysql

Posted: 26 Feb 2020, 18:09
by amet
Cottages-Mac-mini:~ cottageconundrumserver$ sudo /usr/local/mysql/bin/mysql -u root -p

Is the correct one, why it won’t let you in ... I don’t know :(

Did you set root password? Do you know what it is and you are entering it correctly?

Re: unable to get past: sudo /usr/local/mysql/bin/mysql

Posted: 26 Feb 2020, 18:34
by bmiddaugh
Hi,
Yes I set it and wrote it down.

When I enter that command: sudo /usr/local/mysql/bin/mysql -u root -p

It responds with:

Enter password:

I then put in my mac account password and then it responds with:

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

should I be putting my sql password in there someplace?
My apologies as I am a complete noob to sql programming.

Re: unable to get past: sudo /usr/local/mysql/bin/mysql

Posted: 27 Feb 2020, 06:40
by amet
When MySQL asks for a password, you should be putting your MySQL root password in