SELECT lists.id, list_items.id, l_id, description, sort, likes
FROM (SELECT * FROM lists WHERE share = 1) lists
LEFT JOIN (SELECT * FROM list_items GROUP BY l_id) list_items
ON lists.id = l_id
SELECT lists.id, list_items.id, l_id, description, sort, likes
FROM (SELECT * FROM lists WHERE share = 1) lists
LEFT JOIN (SELECT * FROM list_items GROUP BY l_id) list_items
ON lists.id = l_id
Как да конфигурирате репликация от клъстер към клъстер за Percona XtraDB клъстер или MariaDB клъстер