I tried to copy a column from one table to another table (in two different databases)
I tried the following queries:
update des_db.mytable as des
set col= (select col from src_db.mytable as src where src.id = db.id)
and also joining these two tables.
In both solutions, I got the error “Total number of locks exceed the lock table size”.
I increased the “innodb_log_buffer_size to 32M and it doesn’t work.
I want to know if there is any solution to do this.
IMPORTANT NOTE: the source table is actually my backup and it has the same number of rows as the other one has. (666,666 records)
This way it should work:
Unfortunately I can’t test it right now, but I’m quite sure this works. Aliases should work also.