MySQL error: key specification without a key length

The error happens because MySQL can index only the first N chars of a BLOB or TEXT column. So The error mainly happens when there is a field/column type of TEXT or BLOB or those belong to TEXT or BLOB types such as TINYBLOB, MEDIUMBLOB, LONGBLOB, TINYTEXT, MEDIUMTEXT, and LONGTEXT that you try to make a primary key or index. With full BLOB or TEXT without the length value, MySQL is unable to guarantee … Read more

mysql count duplicates

If you want the count of everything, not just the tuples with duplicates, then eliminate the HAVING line, as that’ll filter out anything that doesn’t have duplicates.

ImportError: No module named ‘MySQL’

I was facing the similar issue. My env details – Python 2.7.11 pip 9.0.1 CentOS release 5.11 (Final) Error on python interpreter – Use pip to search the available module – Install the mysql-connector-python-rf – Verify Thanks =) For python3 and later use the next command: $ pip3 install mysql-connector-python-rf