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:
@@ -9,11 +9,11 @@
|
|||||||
[database]
|
[database]
|
||||||
# This line MUST be changed to actually run the plugin.
|
# This line MUST be changed to actually run the plugin.
|
||||||
# Example:
|
# 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
|
# 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.)
|
# 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
|
# NOTE: In deployment the [database] section and its connection attribute may
|
||||||
# be set in the corresponding core plugin '.ini' file. However, it is suggested
|
# be set in the corresponding core plugin '.ini' file. However, it is suggested
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ script_location = %(here)s/alembic_migrations
|
|||||||
# versions/ directory
|
# versions/ directory
|
||||||
# sourceless = false
|
# sourceless = false
|
||||||
|
|
||||||
sqlalchemy.url = mysql://root:password@localhost/octavia
|
sqlalchemy.url = mysql+pymysql://root:password@localhost/octavia
|
||||||
|
|
||||||
|
|
||||||
# Logging configuration
|
# Logging configuration
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ oslo.middleware>=0.1.0 # Apache-2.0
|
|||||||
oslo.rootwrap>=1.3.0
|
oslo.rootwrap>=1.3.0
|
||||||
oslo.serialization>=1.0.0 # Apache-2.0
|
oslo.serialization>=1.0.0 # Apache-2.0
|
||||||
oslo.utils>=1.0.0 # Apache-2.0
|
oslo.utils>=1.0.0 # Apache-2.0
|
||||||
|
PyMySQL>=0.6.3
|
||||||
python-barbicanclient>=3.0
|
python-barbicanclient>=3.0
|
||||||
python-keystoneclient>=0.11.1
|
python-keystoneclient>=0.11.1
|
||||||
python-novaclient>=2.17.0
|
python-novaclient>=2.17.0
|
||||||
|
|||||||
Reference in New Issue
Block a user