- 论坛徽章:
- 0
|
#!/bin/sh
#------------------------------------
# mysql dir
#------------------------------------
cd /usr/local/mysql/bin
#------------------------------------
#declare parameter
#------------------------------------
t1=$(date +%Y-%m-%d -d "1 day ago")
TableName=$t1
passwords=
#------------------------------------
#call procedure
#------------------------------------
mysql -u root -p$passwords database<<EOF
begin
exec P_CollectionDataBackup($t1,$yesterdayTableName.backups);
end;
EOF
帮忙看看。。。 |
|