Correct the db connection string in dev-quickstart
mysql login requires password by default. We should change the DB creation and connection string as below. 1. mysql -u root -pMYSQL_ROOT_PWD -e "create schema ironic" 2. sed -i ... root:MYSQL_ROOT_PWD@localhost ... ironic.conf.local Change-Id: I19696a470055823a3b2edc45a48889945c255dfd Closes-bug: #1520420
This commit is contained in:
parent
2c6ed6bd8c
commit
01f1fc095a
@ -197,10 +197,10 @@ Option 1: Manual Install
|
||||
# ironic defaults to storing data in ./ironic/ironic.sqlite
|
||||
|
||||
# If using MySQL, you need to create the initial database
|
||||
mysql -u root -e "create schema ironic"
|
||||
mysql -u root -pMYSQL_ROOT_PWD -e "create schema ironic"
|
||||
|
||||
# and switch the DB connection from sqlite to something else, eg. mysql
|
||||
sed -i "s/#connection=.*/connection=mysql\+pymysql:\/\/root@localhost\/ironic/" etc/ironic/ironic.conf.local
|
||||
sed -i "s/#connection=.*/connection=mysql\+pymysql:\/\/root:MYSQL_ROOT_PWD@localhost\/ironic/" etc/ironic/ironic.conf.local
|
||||
|
||||
At this point, you can continue to Step 2.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user