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”

 

Advertisements

One thought on “Resolve mysql errors while running Devstack

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s