I am having the same problem with a different table.
Question2Answer was unable to perform the installation query below. Please check the user in the config file has CREATE and ALTER permissions:
CREATE TABLE qa_userfavorites (userid INT UNSIGNED NOT NULL, entitytype CHAR(1) CHARACTER SET ascii NOT NULL, entityid INT UNSIGNED NOT NULL, nouserevents TINYINT UNSIGNED NOT NULL, PRIMARY KEY (userid, entitytype, entityid), KEY userid (userid, nouserevents), KEY entitytype (entitytype, entityid, nouserevents), CONSTRAINT qa_userfavorites_ibfk_1 FOREIGN KEY (userid) REFERENCES qa_users_users(userid) ON DELETE CASCADE) ENGINE=InnoDB CHARSET=utf8
Error 1100: Table 'qa_userfavorites' was not locked with LOCK TABLES
At this point the table 'qa_userfavorites' does not exists
Than I go and run the query 'CREATE TABLE qa_userfavorites...' manually in mysql, the table is created successfuly. I run the install script again and get the error:
Error 1050: Table 'qa_userfavorites' already exists
If I delete the 'qa_userfavorites' table and run the install script again I get the first error (Error 1100: Table 'qa_userfavorites' was not locked with LOCK TABLES) again
I am using the database master user, so full permissions granted:
Mysql 5.5.9
PHP 5.3.6