I got a question about
"What happens when you using Alter table command when a database is running?

is it possible to run the alter table when database is running?
and if it's possible what will happen if you using alter table?

| improve this question | | | | |

It depends. Some types of ALTERs respond 'instantly' as if nothing happened. Some take a long time and block some or all activity on the table until the ALTER finishes.

What version of MySQL? What was the ALTER statement? SHOW CREATE TABLE.

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.