Resolve mysql errors while running Devstack

During re-configuration/re-running devstack, you might have noticed below error.

ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)

This is  your issue with sql connectivity.

1) Now set a new password with mysql

sudo service mysqld stop
sudo mysqld_safe --skip-grant-tables &
mysql --user root mysql
# check if you are able to access user table
SELECT * FROM user;
# replace new_password with your new passwd
update user SET password = PASSWORD('new_password') WHERE user = 'root';
flush previleges;
exit
#restart mysql server
sudo service mysqld stop
sudo service mysqld start
# test your new password
mysql -u root -p

2) Update new password in your localrc

3) start “./stack.sh”

 

One thought on “Resolve mysql errors while running Devstack

Leave a comment