From b42e5b7d4d13d407b492147942f60602513ea1a3 Mon Sep 17 00:00:00 2001 From: caoyuan Date: Tue, 24 Apr 2018 23:09:09 +0800 Subject: [PATCH] Add pymysql for database connection Change-Id: I2f7e3d47f802cf948934cef0c0bb7980e71cdf79 --- doc/ha-guide-draft/source/storage-ha-block.rst | 4 ++-- doc/ha-guide/source/storage-ha-block.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/ha-guide-draft/source/storage-ha-block.rst b/doc/ha-guide-draft/source/storage-ha-block.rst index a9000cbfa5..a02159b973 100644 --- a/doc/ha-guide-draft/source/storage-ha-block.rst +++ b/doc/ha-guide-draft/source/storage-ha-block.rst @@ -117,7 +117,7 @@ Edit the ``/etc/cinder/cinder.conf`` file. For example, on a RHEL-based system: nfs_mount_options = v3 [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 [keystone_authtoken] @@ -150,7 +150,7 @@ be filled in for you, resulting in a shorter configuration file: :linenos: # 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, # a new Python 3 compatible library and use # sql_connection = mysql+pymysql://cinder:CINDER_DBPASS@10.0.0.11/cinder diff --git a/doc/ha-guide/source/storage-ha-block.rst b/doc/ha-guide/source/storage-ha-block.rst index 5225ecc092..f138d668ec 100644 --- a/doc/ha-guide/source/storage-ha-block.rst +++ b/doc/ha-guide/source/storage-ha-block.rst @@ -117,7 +117,7 @@ Edit the ``/etc/cinder/cinder.conf`` file. For example, on a RHEL-based system: nfs_mount_options = v3 [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 [keystone_authtoken] @@ -150,7 +150,7 @@ be filled in for you, resulting in a shorter configuration file: :linenos: # 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, # a new Python 3 compatible library and use # connection = mysql+pymysql://cinder:CINDER_DBPASS@10.0.0.11/cinder