Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql-cdc MySQL user doesn't have enough privileges #15757

Closed
bzlin20 opened this issue Mar 18, 2024 · 8 comments
Closed

mysql-cdc MySQL user doesn't have enough privileges #15757

bzlin20 opened this issue Mar 18, 2024 · 8 comments
Labels
type/bug Something isn't working
Milestone

Comments

@bzlin20
Copy link

bzlin20 commented Mar 18, 2024

Describe the bug

source cannot pass validation: INVALID_ARGUMENT: MySQL user doesn't have enough privileges: [RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT, SELECT]

Error message/log

24-03-18 21:12:34] [XX000] ERROR: Failed to execute the statement
[2024-03-18 21:12:34] Caused by these errors (recent errors listed first):
[2024-03-18 21:12:34] 1: gRPC request to meta service failed: Internal error
[2024-03-18 21:12:34] 2: failed to create source worker
[2024-03-18 21:12:34] 3: failed to create SplitEnumerator
[2024-03-18 21:12:34] 4: source cannot pass validation: INVALID_ARGUMENT: MySQL user doesn't have enough privileges: [RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT, SELECT]

To Reproduce

CREATE TABLE orders (
order_id int,
price decimal,
PRIMARY KEY (order_id)
) WITH (
connector = 'mysql-cdc',
hostname = 'localhost',
port = '3306',
username = 'root',
password = '123456',
database.name = 'db01',
table.name = 'orders'
);

Expected behavior

I give root user all permissions
image

How did you deploy RisingWave?

docker

The version of RisingWave

PostgreSQL 9.5.0-RisingWave-1.7.1 (3a545de)

Additional context

No response

@bzlin20 bzlin20 added the type/bug Something isn't working label Mar 18, 2024
@github-actions github-actions bot added this to the release-1.8 milestone Mar 18, 2024
@bzlin20
Copy link
Author

bzlin20 commented Mar 19, 2024 via email

@lmatz
Copy link
Contributor

lmatz commented Mar 19, 2024

cc: @StrikeW @cyliu0 if

I can use it after creating a new user according to the official website's method. It's strange that it can't work if I use the root user.

is expected?

@lmatz
Copy link
Contributor

lmatz commented Mar 19, 2024

Hi @SparkLover , what version of MySQL are you using?

@StrikeW
Copy link
Contributor

StrikeW commented Mar 19, 2024

Hi @SparkLover, I think in v1.7.2 we have fixed the issue with GRANT ALL. You may try out the v1.7.2 version.. The PR
#15395 didn't cherry-picked into v1.7.2 yet
The reason is we didn't consider the GRANT ALL for mysql 5.7 before, the fix has merged in main and will go into v1.8.

@bzlin20
Copy link
Author

bzlin20 commented Mar 19, 2024 via email

@bzlin20
Copy link
Author

bzlin20 commented Mar 19, 2024 via email

@StrikeW
Copy link
Contributor

StrikeW commented Mar 19, 2024

Sorry, the fix PR
#15395 didn't cherry-picked into v1.7.2 yet
We didn't consider the GRANT ALL for mysql 5.7 before, the fix has merged in main and will go into v1.8.

@bzlin20
Copy link
Author

bzlin20 commented Mar 19, 2024

We didn't consider the GRANT ALL for mysql 5.7 before, the fix has merged in main and will go into v1.8.

thanks, I see

@StrikeW StrikeW closed this as completed Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants