D
D
Dos2020-08-15 20:01:48
MySQL
Dos, 2020-08-15 20:01:48

How to fix error in mysql backup?

Hello! I can’t understand why I don’t have a backup of the base. Help please! Team:

MYSQL_HOST='127.0.0.1';
MYSQL_USERNAME='admin_root';
MYSQL_DB='main_data';
MYSQL_PWD='123456'
MYSQL_PWD=${MYSQL_PWD} mysqldump -h "${MYSQL_HOST}" -u "${MYSQL_USERNAME}" "${MYSQL_DB}" > "/tmp/${FILENAME}
I am getting this error

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

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
BorLaze, 2020-08-15
@pro-dev

GRANT PROCESS ON *.* TO 'admin_root'@'localhost'

N
necrodeflorator, 2020-08-15
@necrodeflorator

A little off topic, but if you dump a working database, then read more about single transactions
https://www.google.com/amp/s/ruhighload.com/%25D0%...

Y
yurybykov, 2021-01-20
@yurybykov

If you do not use TABLESPACE, then you DO NOT need to add new rights!
You need to specify the --no-tablespaces option when calling mysqldump.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question