3 ms·
Referring to https://github.com/memsql/bench/blob/master/sql_database.py https://github.com/memsql/bench/blob/master/sql_database.py , we use _mysql, not mysqld
by ankrgyl 14y ago
Referring to https://github.com/memsql/bench/blob/master/sql_database.py https://github.com/memsql/bench/blob/master/sql_database.py , we use _mysql, not mysqldb. Here's some code that demonstrates:
In [1]: import _mysql
In [2]: c = _mysql.connect(host='127.0.0.1', user='root')
In [3]: c.query("SELECT @@session.autocommit")
In [4]: c.store_result().fetch_row(1)
Out[4]: (('1',),)