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

Added CONFIG_mysql_dump_tablespaces option to handle breaking change in MySQL 5.7.31 and 8.0.21 #51

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SLiV9
Copy link
Contributor

@SLiV9 SLiV9 commented Jun 16, 2021

Added CONFIG_mysql_dump_tablespaces (default 'yes'). When set to 'no' it adds the option --no-tablespaces to the invocation of mysqldump. The default behaviour remains unchanged.

As a breaking change in MySQL 5.7.31 and 8.0.21, mysqldump now requires the PROCESS privilege to access tablespace information. If no tablespace information is needed, --no-tablespaces can be added to the mysqldump invocation to lower the privileges required by the mysqldump user.

…dump option '--no-tablespaces' if set to 'no'; otherwise the user requires PROCESS privileges.
@kimonostereo
Copy link

Thanks for adding this! I've added these changes but I'm still seeing the error mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces

What is interesting is if I set CONFIG_mysql_dump_tablespaces to yes, I get two instances of the error instead of one. Not sure why that is happening. Maybe there is another place in the script where this needs to be applied?

@nathanhoeller
Copy link

Hey @kimonostereo, I'm seeing the two instances of the error as well. Were you able to find a solution?

@kimonostereo
Copy link

Hey @kimonostereo, I'm seeing the two instances of the error as well. Were you able to find a solution?

Hey there @nathanhoeller! No I did not. I've taken to just living with this error. If you ever figure it out, please let me know!

@solaceten
Copy link

solaceten commented Jan 27, 2024

Hello

I also see this error:

mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces

I am running #version=3.0_rc2

Any one have a clue how to resolve it? The DBs are still actually being dumped, so perhaps we have to simply ignore this error ?

SOLVED: see my note in post below #51 (comment)

@kimonostereo
Copy link

Hello

I also see this error:

mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces

I am running #version=3.0_rc2

Any one have a clue how to resolve it? The DBs are still actually being dumped, so perhaps we have to simply ignore this error ?

Hi @solaceten! I run into the exact same issue, but I have no clue on how to resolve it. I've been ignoring it for a long time.

@solaceten
Copy link

You might want to look into this repository which I believe is an updated version. I did a complete reinstall and had to tweak the settings here and there, but it is more up to date script and it works with MySql V8

https://github.com/belgotux/automysqlbackup

Credit to @belgotux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants