Skip to content

Why does MYSQL Sleep(x) go on forever?

I have a basic SQL query However, when I run it, it just goes on forever until it reaches a timeout message. I have already tried and it still goes on forever. There are no error messages, the request just goes on forever. Answer You have it to use it like this or Then it will wait 5 Secondes between

How to find people who likes each other?

I’m using mysql. There is likes_table for users. However, I am stuck to find people who like each other. likes_table: id (unique), from_user_id, to_user_id 1,3,1 2,1,3 3,1,64 4,1,2 5,2,1 For …