(Ulf Wendel) C and PHP MySQL clients can set a connection timeout before a connection is established to MySQL. The MySQL C API manual states about MYSQL_OPT_CONNECT_TIMEOUT , which is equal to PHPs MYSQLI_OPT_CONNECT_TIMEOUT:
Tag: Open Source
Catching erroneous queries, without MySQL proxy
(Baron Schwartz) MySQL Proxy is a really neat tool. I remember a few years back when I first saw Jan talking about it. Back in those days it was significantly different than it is now, but the concept remains the same: direct your database traffic through a man-in-the-middle. Chris Calender’s post o
MariaDB 5.1 feature: Table Elimination
(Sergey Petrunia) MariaDB 5.1 beta is almost out, so it’s time to cover some of its features. The biggest optimizer feature is MWL#17 Table Elimination.
Capturing Erroneous Queries with MySQL Proxy
(Chris Calender) The MySQL General Query Log can be very beneficial as it records all queries sent to the server. However, there are times you want more specific information, which can be hard, if not impossible, to filter from this log.
MySQL requires Dual?
(Michael McLaughlin) All this time I thought MySQL was so progressive by eliminating the DUAL pseudo table when selecting a string literal. I also thought it interesting that they also supported selecting a string literal from the DUAL pseudo table. While playing around with examples for my students
Lowercasing table and column names
(Leo Hsu and Regina Obe) This is an unfortunate predicament that many people find themselves in and does cause a bit of frustration. You bring in some tables into your PostgreSQL database using some column name preserving application, and the casings are all preserved from the source data store. So
Make Your MySQL Queries More Efficient with Temporary Tables
(Rob Gravelle) Knowing how to use temporary tables in your stored procedures is a great way to save time and effort, particularly when dealing with multiple queries that return very large and/or similar resultsets. If you’re fetching several resultsets that contain a lot of common data, it can make
PHP: the mysqlnd slow query log (incl. backtrace)
(Ulf Wendel) Sometimes you forget about what you did years ago, for example the ability of mysqlnd write back traces of slow queries into the PHP error log . Regardless if you use mysqlnd with ext/mysql, ext/mysqli or PDO_MYSQL, mysqlnd is able to tell you which of your code has executed a slow quer
Evolving A Database With MySQL
(Willem Bogaerts) In present-day programming, the data storage is far from the static beast some people believe it once was. Lots of applications have their own piece of data storage in relational databases and the shape of that storage alters as often as the applications themselves: daily. The only
Secure Your Server – Tips for DBAs
(Chris) It has been the responsibility of the DBA to implement a security strategy, at least on the database level. All DBAs should take action, if not already, by taking a proactive approach to this crucial part of database administration. For this post I have compiled a list of general best practi
