我的问题发生如下:
我使用 mysqldb 的 API,代码如下:
conn = MySQLdb.connect(host='192.168.1.16', user='henry', passwd='password', db='test', charset='utf8')
cur = conn.cursor()
没关系,连接 mysql 是成功的,它也适用于这个:
select count(*) from songs; everthing is allright.
但是如果我像这样使用sql:
select * from songs;
错误是:
connect mysqldb error. the songs table has 5000000 rows.