Hi guys.
I’m trying go upgrade/migrate - something which worked for me in the past - my ghost but I fail with:
create or replace view `members_resolved_subscription` as
SELECT member_id, subscription_id
FROM (
SELECT
msc.member_id,
mscs.id as subscription_id,
ROW_NUMBER() OVER (
PARTITION BY msc.member_id
ORDER BY
CASE WHEN mscs.status IN ('active', 'trialing', 'past_due', 'unpaid') THEN 0 ELSE 1 END,
mscs.created_at DESC,
mscs.id ASC
) as rn
FROM members_stripe_customers_subscriptions mscs
JOIN members_stripe_customers msc ON msc.customer_id = mscs.customer_id
WHERE mscs.status NOT IN ('incomplete', 'incomplete_expired')
) ranked
WHERE rn = 1
- CREATE VIEW command denied to user 'ghostadm'@'11.1.0.1' for table `ghost_some_xyz`.`members_resolved_subscription`
{"config":{"transaction":false},"name":"2026-06-09-09-00-01-add-members-resolved-subscription-view.js"}
"Error occurred while executing the following migration: 2026-06-09-09-00-01-add-members-resolved-subscription-view.js"
Error ID:
300
Error Code:
ER_TABLEACCESS_DENIED_ERROR
That very installation worked a okey until now when I’m trying new docker image.
Also, the same mysql server/host and another ghost did migrate/update to the same docker image without issue. I supposed it’s that very database rather than the host/mysql itself.
Any ideas what/where to troubleshoot or perhaps you have a “fix” for it?
thanks, L.