--- /usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py 2016-08-15 20:22:13.000000000 +0000 +++ b/cinder/db/sqlalchemy/api.py 2016-08-17 09:21:49.720954120 +0000 @@ -396,9 +396,10 @@ match_level = 'host' # Mysql is not doing case sensitive filtering, so we force it - if CONF.database.connection.startswith('mysql:'): + conn_str = CONF.database.connection + if conn_str.startswith('mysql') and conn_str[5] in ['+', ':']: cmp_value = func.binary(value) - like_op = 'LIKE_BINARY' + like_op = 'LIKE BINARY' else: cmp_value = value like_op = 'LIKE'