Added pymysql as default DBAPI

pymysql does not require any system dependencies so it just
requires a pip install unlike MySQL-Python.

Change-Id: I4839e2995869b6dc857052632701affbd9bfcc5e
This commit is contained in:
Brandon Logan 2014-12-12 16:06:09 -06:00
parent 9786021205
commit 6b511cc113
3 changed files with 4 additions and 3 deletions

View File

@ -9,11 +9,11 @@
[database]
# This line MUST be changed to actually run the plugin.
# Example:
# connection = mysql://root:pass@127.0.0.1:3306/octavia
# connection = mysql+pymysql://root:pass@127.0.0.1:3306/octavia
# Replace 127.0.0.1 above with the IP address of the database used by the
# main octavia server. (Leave it as is if the database runs on this host.)
# connection = sqlite://
# connection = mysql+pymysql://
# NOTE: In deployment the [database] section and its connection attribute may
# be set in the corresponding core plugin '.ini' file. However, it is suggested

View File

@ -20,7 +20,7 @@ script_location = %(here)s/alembic_migrations
# versions/ directory
# sourceless = false
sqlalchemy.url = mysql://root:password@localhost/octavia
sqlalchemy.url = mysql+pymysql://root:password@localhost/octavia
# Logging configuration

View File

@ -32,6 +32,7 @@ oslo.middleware>=0.1.0 # Apache-2.0
oslo.rootwrap>=1.3.0
oslo.serialization>=1.0.0 # Apache-2.0
oslo.utils>=1.0.0 # Apache-2.0
PyMySQL>=0.6.3
python-barbicanclient>=3.0
python-keystoneclient>=0.11.1
python-novaclient>=2.17.0