You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error happens on GCP Cloud SQL because gh-ost validates privileges before starting the migration.
When running with -gcp=true and -assume-rbr, gh-ost bypasses the check for the SUPER privilege (which GCP Cloud SQL does not grant to users). However, it still explicitly requires:
REPLICATION CLIENT and REPLICATION SLAVE on global scope (*.*)
ALL PRIVILEGES on the specific target database schema (paynow-interior.*)
On Cloud SQL, default admin/root accounts often lack REPLICATION SLAVE or explicit database-level grants for newly created schemas.
Solution
Connect to your Cloud SQL instance via your MySQL client and execute the following:
sql
-- 1. Grant global replication streaming privileges
GRANT REPLICATION CLIENT, REPLICATION SLAVE ON . TO 'root'@'%';
-- 2. Grant full database privileges on target database
GRANT ALL PRIVILEGES ON paynow-interior.* TO 'root'@'%';
Activity
soepic1 commentedon Jul 30, 2026
Hi @suyanhj ,
This error happens on GCP Cloud SQL because
gh-ostvalidates privileges before starting the migration.When running with
-gcp=trueand-assume-rbr,gh-ostbypasses the check for theSUPERprivilege (which GCP Cloud SQL does not grant to users). However, it still explicitly requires:REPLICATION CLIENTandREPLICATION SLAVEon global scope (*.*)ALL PRIVILEGESon the specific target database schema (paynow-interior.*)On Cloud SQL, default admin/root accounts often lack
REPLICATION SLAVEor explicit database-level grants for newly created schemas.Solution
Connect to your Cloud SQL instance via your MySQL client and execute the following:
sql
-- 1. Grant global replication streaming privileges
GRANT REPLICATION CLIENT, REPLICATION SLAVE ON . TO 'root'@'%';
-- 2. Grant full database privileges on target database
GRANT ALL PRIVILEGES ON
paynow-interior.* TO 'root'@'%';-- 3. Flush privileges
FLUSH PRIVILEGES;