MySQL数据库分库备份

#!/bin/bash #Date:2022-03-28 #Function:backup database PATH="/path/mysql/bin:$PATH" dbpath=/dbdata/backup myuser=root mypass=123 mycmd="mysql -u$myuser -p$mypass" mydump="mysqldump -u$myuser -p$mypass -B --master-data=2 --single-transaction" [ ! -d "$dbpath"...

358 0 0
加载中