It seems like I should be able to do a
Code: Select all
$pdo->query('set max_allowed_packet=4*1024*1024');
Communication link failure: 1153 Got a packet bigger than 'max_allowed_packet' bytes
Here's what I've tried so far:
Code: Select all
$query = $pdo->prepare('set max_allowed_packet=4*1024*1024');
$query->execute();
$query = $pdo->prepare('insert entries values(?,now(),?,?,?)');
$query->bindParam(1,$this->id);
$query->bindParam(2,$script);
$query->bindParam(3,$type);
$query->bindParam(4,$message,PDO::PARAM_LOB);
$query->execute();
Is there some mystical PDO parameter or configuration I'm missing?