I know this question was asked several times already but my problem is happening with a table I've just created. It has only 10 columns and only 1 row in it.
So unlike the usual hanging problem this is not the case of a large table with a lot of data. And yet it hangs.
This is the SQL I'm running:
ALTER TABLE `db`.`Search`
ADD COLUMN `useremail` VARCHAR(256) NOT NULL COMMENT '' AFTER `id`;
Simple enough and yet it hangs (50 minutes and counting.) I tried quitting Workbench
and Eclipse
and deleting all java
processes and the one mysqld
process. But no luck.
I'm running on a Mac OSX El Capitain
. How do I add this column to my table?
Show full processlist
and tell me if there's any query likeALTER TABLE
db.
Search` ADD COLUMNuseremail
VARCHAR(256) NOT NULL COMMENT '' AFTERid
;` running ?kill 2134
. Then retry and let me know what happened this time.