griddynamics/openstack — Issue #8: Error on prepare database script on the single-node install documentation page
Author: marcelocg
Created: 2012-01-16 21:52:07+00:00
State: open

Hi,

On http://www.griddynamics.com/openstack/setup_single.html at step 3, the prepare database script has errors in the GRANT PROVILEGES commands.

The original is like:

echo "GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'$h' IDENTIFIED BY '$DB_PASS';" | mysql -uroot -p$DB_PASS mysql

But notice that the password that is being passed to the root user should be the $PWD variable content instead. The command should be:

echo "GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'$h' IDENTIFIED BY '$DB_PASS';" | mysql -uroot -p$PWD mysql

And this applies to all 3 GRANT commands in the script.

Thanks for the nice work with openstack! Keep up!

Marcelo Gonçalves
Fortaleza - Brazil