创建一个只读的mysql账户并且可以使用mysqldump导出

GRANT SELECT ON *.* TO backup@localhost IDENTIFIED BY 'password';
grant show view on *.* to backup@localhost;
grant lock tables on *.*to backup@localhost;
grant trigger on *.* to backup@localhost;

 

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注