From ac20f3d36339d9f7600a2b2a1efc6f7d9a2f02aa Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 20 May 2015 01:03:59 +0000 Subject: [PATCH] Switch from MySQL-python to PyMySQL As discussed in the Liberty Design Summit "Moving apps to Python 3" cross-project workshop, the way forward in the near future is to switch to the pure-python PyMySQL library as a default. https://etherpad.openstack.org/p/liberty-cross-project-python3 Change-Id: Ic5b8afd5968a3ea9cb32069d289f3c59729d776e --- doc/source/adminref/quick_start.rst | 2 +- test-requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/adminref/quick_start.rst b/doc/source/adminref/quick_start.rst index 4371f1270c..730f0f66d5 100644 --- a/doc/source/adminref/quick_start.rst +++ b/doc/source/adminref/quick_start.rst @@ -219,7 +219,7 @@ Open Manila configuration file `/etc/manila/manila.conf`:: [DATABASE] # Set up MySQL connection. In following ‘foo’ is username, # ‘bar’ is password and ‘quuz’ is host name or address: - connection = mysql://foo:bar@quuz/manila?charset=utf8 + connection = mysql+pymysql://foo:bar@quuz/manila?charset=utf8 [oslo_concurrency] # Following opt defines directory to be used for lock files creation. diff --git a/test-requirements.txt b/test-requirements.txt index 76c4433aa5..25624dc14a 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -11,7 +11,7 @@ ddt>=0.4.0 discover fixtures>=0.3.14 mock>=1.0 -MySQL-python +PyMySQL>=0.6.2 # MIT License oslotest>=1.5.1 # Apache-2.0 oslosphinx>=2.5.0 # Apache-2.0 psycopg2