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: I058419b25f55dcfd93af522aa1f5f61b8f06407e
This commit is contained in:
parent
655b8e7ec6
commit
6b7d6f68a8
@ -69,7 +69,7 @@ SQLalchemy-supported DBs
|
||||
ceilometer.conf as follows::
|
||||
|
||||
[database]
|
||||
connection = mysql://username:password@host/ceilometer?charset=utf8
|
||||
connection = mysql+pymysql://username:password@host/ceilometer?charset=utf8
|
||||
|
||||
HBase
|
||||
-----
|
||||
|
@ -22,7 +22,7 @@ mkfifo ${MYSQL_DATA}/out
|
||||
mysqld --datadir=${MYSQL_DATA} --pid-file=${MYSQL_DATA}/mysql.pid --socket=${MYSQL_DATA}/mysql.socket --skip-networking --skip-grant-tables &> ${MYSQL_DATA}/out &
|
||||
# Wait for MySQL to start listening to connections
|
||||
wait_for_line "mysqld: ready for connections." ${MYSQL_DATA}/out
|
||||
export CEILOMETER_TEST_MYSQL_URL="mysql://root@localhost/template1?unix_socket=${MYSQL_DATA}/mysql.socket&charset=utf8"
|
||||
export CEILOMETER_TEST_MYSQL_URL="mysql+pymysql://root@localhost/template1?unix_socket=${MYSQL_DATA}/mysql.socket&charset=utf8"
|
||||
|
||||
# Yield execution to venv command
|
||||
$*
|
||||
|
@ -12,7 +12,7 @@ fixtures>=0.3.14
|
||||
happybase>=0.5,!=0.7
|
||||
httplib2>=0.7.5
|
||||
mock>=1.0
|
||||
MySQL-python
|
||||
PyMySQL>=0.6.2 # MIT License
|
||||
# Docs Requirements
|
||||
oslosphinx>=2.5.0 # Apache-2.0
|
||||
oslotest>=1.5.1 # Apache-2.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user