新版本使用这个命令:
su -s /bin/sh -c "keystone-manage db_sync" keystone 【这里只是填充数据】
openstack-db --init --service keystone --password keystone --rootpw openstack;【这是是下面操作】
相当于下面操作:
也可以通过手动创建keystone数据库:
mysql -u root -p
mysql> CREATE DATABASE keystone;
mysql> GRANT ALL ON keystone.* TO 'keystone'@'%' IDENTIFIED BY '[YOUR_KEYSTONEDB_PASSWORD]';
mysql> GRANT ALL ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY '[YOUR_KEYSTONEDB_PASSWORD]';
mysql> quit