Reset mysql root pass -
Reset mysql root pass -
i've been trying reset password mysql of solutions i've found, nil seems work. i'm using osx yosemite mamp , mysql 5.6.20
i attempted reset password via mamp pass
not work
$mysql -u root -p come in password: pass error 1045 (28000): access denied user 'root'@'localhost' (using password: yes) $
and none of works
$mysql -uroot error 1045 (28000): access denied user 'root'@'localhost' (using password: no) $mysql -u root error 1045 (28000): access denied user 'root'@'localhost' (using password: no) $mysql -u root@localhost welcome mysql monitor. commands end ; or \g. mysql connection id 62 server version: 5.6.20 homebrew copyright (c) 2000, 2014, oracle and/or affiliates. rights reserved. type 'help;' or '\h' help. type '\c' clear current input statement. mysql> utilize magento error 1044 (42000): access denied user ''@'localhost' database 'magento' mysql> set password 'root' = password('pass'); error 1044 (42000): access denied user ''@'localhost' database 'mysql' mysql> set password 'root'@'localhost' = password('pass'); error 1044 (42000): access denied user ''@'localhost' database 'mysql' mysql> set password 'root'@'::1' = password('pass'); error 1044 (42000): access denied user ''@'localhost' database 'mysql'
you can stop mysql server , restart --skip-grant-tables option. way doesn't @ credentials when opening mysql shell
after that,
mysql> update mysql.user set password=password('mynewpass') -> user='root'; mysql> flush privileges;
stop mysql server, , start again
mysql
Comments
Post a Comment