刚刚alert table 创建索引 半路kill了 但是主库成功了 从库没有成功
主库删除索引 从库就停止同步了
马上发现报警 跳过一个错误恢复同步
刚刚alert table 创建索引 半路kill了 但是主库成功了 从库没有成功
主库删除索引 从库就停止同步了
马上发现报警 跳过一个错误恢复同步
echo date('Y-m-d', strtotime('-2 sunday +1 day'));
require_once __DIR__ . '/../autoload.php';
use Qiniu\Auth;
use Qiniu\Storage\BucketManager;
$accessKey = 'Access_Key';
$secretKey = 'Secret_Key';
//初始化Auth状态:
$auth = new Auth($accessKey, $secretKey);
//初始化BucketManager
$bucketMgr = new BucketManager($auth);
//你要测试的空间, 并且这个key在你空间中存在
$bucket = 'Bucket_Name';
$key = 'php-logo.png';
//将文件从文件$key 改成文件名$key2。 可以在不同bucket移动
$key3 = 'php-logo3.png';
$err = $bucketMgr->move($bucket, $key2, $bucket, $key3);
echo "\n====> move $key to $key2 : \n";
if ($err !== null) {
var_dump($err);
} else {
echo "Success!";
}
https://github.com/qiniu/php-sdk/blob/master/examples/file_move.php
删除满足条件的记录
<delete><query>id:1</query></delete>
<commit/>
cat filename | while read line
do
echo '###' $line
done