我使用debian-sys-maint作为实际的方式在我们的debian系统中执行数据库转储,如下所示:
mysqldump -u debian-sys-maint -p`cat /etc/mysql/debian.cnf | grep password | tail -n 1 | cut -d' ' -f3`
我想知道在CentOS中是否有类似的用户,我只需要用户能够进行备份。 这样我就不必在每个系统上创build一个新用户。 这个有趣的部分是/etc/mysql/debian.cnf包含了debian-sys-maint的清除密码。
不,在CentOS中没有默认创build这样的MySQL用户。
debian-sys-maint用户默认是RHEL / CentOS上的一个等同的根。 root在任何mysql安装上都存在。