Replaces MySQLdb with PyMySQL
Pure python implementation so you don't have to deal with mysql headers
This commit is contained in:
parent
7060581a6f
commit
d50264aaca
@ -1 +1 @@
|
|||||||
MySQL-python
|
PyMySQL
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
import MySQLdb
|
import pymysql
|
||||||
|
|
||||||
from tempest import config
|
from tempest import config
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ class Client(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def connect(self):
|
def connect(self):
|
||||||
return MySQLdb.connect(
|
return pymysql.connect(
|
||||||
self.db_config['host'],
|
self.db_config['host'],
|
||||||
self.db_config['username'],
|
self.db_config['username'],
|
||||||
self.db_config['password'],
|
self.db_config['password'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user