Ulf Wendel

2011/10/18
by admin
Comments Off on Uh, uh… SQL injection for auto EXPLAIN

Uh, uh… SQL injection for auto EXPLAIN

Would you like to see the EXPLAIN output for all MySQL queries of any PHP application without changing the application much? Easy-peasy: compile PHP to use the mysqlnd library, install PECL/mysqlnd_uh and paste 22 lines of evil code into your … Continue reading

2011/10/14
by admin
Comments Off on Uh, uh… faking or caching MySQL PHP results

Uh, uh… faking or caching MySQL PHP results

Unfortunately MySQL Proxy was no good source of inspiration today. MySQL Proxy can do many wonderful things which you can do with C based mysqlnd plugins as well. But not with PECL/mysqlnd_uh. PECL/mysqlnd_uh lets you write “plugins” in PHP. Given … Continue reading

2011/10/13
by admin
Comments Off on Uh, uh… PHP MySQL client fail over

Uh, uh… PHP MySQL client fail over

It is the third day I try to find mysqlnd plugin use cases for the Succeed with Plugins webinar on October, 26th. Not being innovative or creative today, I looked into a classic: client fail over. As a trained and … Continue reading

2011/10/12
by admin
Comments Off on Uh, uh… who caused that error? MySQL ?!

Uh, uh… who caused that error? MySQL ?!

Support nightmare: a customer reports a random PHP MySQL error. As a support expert you have the strong feeling that it is down to some suspicious SQL sequence. How to proof? 25 lines of PECL/mysqlnd_uh swiss-army knife magic… prepend.php class … Continue reading

2011/09/30
by admin
Comments Off on The mysqlnd replication plugin 1.1.0 release

The mysqlnd replication plugin 1.1.0 release

PECL/mysqlnd_ms 1.1.0 (download) has been released (documentation)! It is a drop-in solution to add MySQL replication support to any PHP 5.3+ application using any of the PHP MySQL APIs (mysql, mysqli, PDO_MySQL) when compiled to use the mysqlnd library. It … Continue reading

2011/09/28
by admin
Comments Off on Replication plugin | filter | conquer = 1.1.0 coming

Replication plugin | filter | conquer = 1.1.0 coming

The soon to be announced version 1.1.0-beta of the mysqlnd replication and load balancing plugin (PECL/mysqlnd_ms) for PHP introduces a new concept of filters to the plugin. Filters take a list of servers to pick one or more of it. … Continue reading