我正在运行此查询
SELECT
friends.*, users.username, users.profile, users_groups.id
FROM
friends, users, users_groups
WHERE
friends.uid=$logged_id AND friends.who=users.id
AND
(
users.username LIKE '%$search%' OR
users.first_name LIKE '%$search%' OR
users.last_name LIKE '%$search%'
)
LIMIT
$start, $min
然而我收到了这个:
Error Number: 2013
Lost connection to MySQL server during query
如果我从查询中删除LIKE语句就可以了
答案 0 :(得分:0)
也许这是一张大桌子而LIKE会引发超时。