Newb here! Using 4.0.20 on Slack. Slogging through the official
manual. At 2.4.3 Securing the Initial MySQL Accounts, I'm finally
stopped cold while trying to follow instructions. Here's what I did:
shell> mysql -u root
mysql> SET PASSWORD FOR ''@'localhost' = PASSWORD('newpw d');
.....as per instructed (I just cut 'n paste). I then quit mysql and
log back on as root:
mysql -u root
.....expecting a passwd prompt. Nothing. I just go in as root, as
confirmed by:
mysql> select user();
+----------------+
| user() |
+----------------+
| root@localhost |
+----------------+
So, about syntax, are all those single quotes suppose to be in the
actual command? Also, since I've done this (and nothing else), I can
no longer log in as anonymous. I get:
notbob ~>mysql
ERROR 1045: Access denied for user: 'notbob@localho st' (Using
password: NO)
Everything was going along so well. What happened?
nb
manual. At 2.4.3 Securing the Initial MySQL Accounts, I'm finally
stopped cold while trying to follow instructions. Here's what I did:
shell> mysql -u root
mysql> SET PASSWORD FOR ''@'localhost' = PASSWORD('newpw d');
.....as per instructed (I just cut 'n paste). I then quit mysql and
log back on as root:
mysql -u root
.....expecting a passwd prompt. Nothing. I just go in as root, as
confirmed by:
mysql> select user();
+----------------+
| user() |
+----------------+
| root@localhost |
+----------------+
So, about syntax, are all those single quotes suppose to be in the
actual command? Also, since I've done this (and nothing else), I can
no longer log in as anonymous. I get:
notbob ~>mysql
ERROR 1045: Access denied for user: 'notbob@localho st' (Using
password: NO)
Everything was going along so well. What happened?
nb
Comment