Add pymysql for database connection
Change-Id: I2f7e3d47f802cf948934cef0c0bb7980e71cdf79
This commit is contained in:
parent
889feb07dd
commit
b42e5b7d4d
@ -117,7 +117,7 @@ Edit the ``/etc/cinder/cinder.conf`` file. For example, on a RHEL-based system:
|
|||||||
nfs_mount_options = v3
|
nfs_mount_options = v3
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
sql_connection = mysql://cinder:CINDER_DBPASS@10.0.0.11/cinder
|
connection = mysql+pymysql://cinder:CINDER_DBPASS@10.0.0.11/cinder
|
||||||
max_retries = -1
|
max_retries = -1
|
||||||
|
|
||||||
[keystone_authtoken]
|
[keystone_authtoken]
|
||||||
@ -150,7 +150,7 @@ be filled in for you, resulting in a shorter configuration file:
|
|||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
# We have to use MySQL connection to store data:
|
# We have to use MySQL connection to store data:
|
||||||
sql_connection = mysql://cinder:CINDER_DBPASS@10.0.0.11/cinder
|
connection = mysql+pymysql://cinder:CINDER_DBPASS@10.0.0.11/cinder
|
||||||
# Alternatively, you can switch to pymysql,
|
# Alternatively, you can switch to pymysql,
|
||||||
# a new Python 3 compatible library and use
|
# a new Python 3 compatible library and use
|
||||||
# sql_connection = mysql+pymysql://cinder:CINDER_DBPASS@10.0.0.11/cinder
|
# sql_connection = mysql+pymysql://cinder:CINDER_DBPASS@10.0.0.11/cinder
|
||||||
|
@ -117,7 +117,7 @@ Edit the ``/etc/cinder/cinder.conf`` file. For example, on a RHEL-based system:
|
|||||||
nfs_mount_options = v3
|
nfs_mount_options = v3
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
connection = mysql://cinder:CINDER_DBPASS@10.0.0.11/cinder
|
connection = mysql+pymysql://cinder:CINDER_DBPASS@10.0.0.11/cinder
|
||||||
max_retries = -1
|
max_retries = -1
|
||||||
|
|
||||||
[keystone_authtoken]
|
[keystone_authtoken]
|
||||||
@ -150,7 +150,7 @@ be filled in for you, resulting in a shorter configuration file:
|
|||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
# We have to use MySQL connection to store data:
|
# We have to use MySQL connection to store data:
|
||||||
connection = mysql://cinder:CINDER_DBPASS@10.0.0.11/cinder
|
connection = mysql+pymysql://cinder:CINDER_DBPASS@10.0.0.11/cinder
|
||||||
# Alternatively, you can switch to pymysql,
|
# Alternatively, you can switch to pymysql,
|
||||||
# a new Python 3 compatible library and use
|
# a new Python 3 compatible library and use
|
||||||
# connection = mysql+pymysql://cinder:CINDER_DBPASS@10.0.0.11/cinder
|
# connection = mysql+pymysql://cinder:CINDER_DBPASS@10.0.0.11/cinder
|
||||||
|
Loading…
Reference in New Issue
Block a user