Access denied for user 'ec2-user'@'localhost' (using password: NO)
ref : ()
a) grep 'temporary password' /var/log/mysqld.log
login with temp password.
b) mysql -u root -p
password : 'temporary password'
(or)
mysql> UPDATE mysql.user SET Password=PASSWORD('your_new_password') WHERE User='root';
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql> SET PASSWORD = PASSWORD('your_new_password');
Query OK, 0 rows affected, 1 warning (0.01 sec)
follow step - b.
ref : stackoverflow for a
stackoverflow : for b.
ref : ()
a) grep 'temporary password' /var/log/mysqld.log
login with temp password.
b) mysql -u root -p
password : 'temporary password'
(or)
mysql> UPDATE mysql.user SET Password=PASSWORD('your_new_password') WHERE User='root';
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql> SET PASSWORD = PASSWORD('your_new_password');
Query OK, 0 rows affected, 1 warning (0.01 sec)
follow step - b.
ref : stackoverflow for a
stackoverflow : for b.
No comments:
Post a Comment