You must reset your password using ALTER USER statement before executing this statement.
It is neccesary to reset the temporary password that was generated for root@localhost.
Open a session of Terminal:
Press "cmd + space" = Spotlight: type: Terminal
Type: the next statement, and type the emporary passwor, then alter (change) the password.
/usr/local/mysql/bin/mysql -uroot -p;
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.7.18
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'NEWPASS';
Query OK, 0 rows affected (0.00 sec)
Lines up in red are the solution
No comments:
Post a Comment