why do two mysql lock and flush statements on different dbs hang -


We have two identical DBS A and B.

First I connect to DB A with the client

mysql -ua -pa a

I issue commands

  write lock table table 1, write table 2; Flush table table 1, table 2;   

I open a new session without closing the session

mysql -ub -pb b

I issue the same order write table table 1, write table 2; Flush table table 1, table 2;

The second flush seems to be trapped. Only when I close the first connection, the second flush is the success.

Why does this happen, are these two different DBS? How can I avoid this?

I use mysql 5.1 and all tables are myisam tables.

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -