Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I'm trying to secure MySql on Snow Leopard (10.6.2) as per the instructions (from page 273 of David's book). I have "amended PATH in the bash shell in OS X 10.4 or later", as directed.
When I then try to set the MySql root password by typing "mysql -u root" in Terminal, I get a "command not found" message.
Any suggestions?… in layman's terms as far as possible, please….
TIA
Hugh
Copy link to clipboard
Copied
I have progressed a few steps....
I am now getting the error below when I type "mysql -u root" in Terminal.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Any help would be much appreciated.
Hugh
Copy link to clipboard
Copied
Try using mysql -u root -p
The -p will make it prompt you for a password.
Ken Ford
Copy link to clipboard
Copied
Thanks, Ken, for your help. I figured it out, in fact. The root user on my MySql server already had a password set. Typing the following:
mysqladmin -u root -p password "newpassword"
... did the job for me.