Tiffany B. Brown

A web log about web development and internet culture with frequent detours into other stuff.

Posts tagged: pdo

Review: Learning PHP Data Objects by Dennis Popel
Packt Publishing graciously provided me with a copy of this book to review. PHP supports more than a dozen database setups, including the SQLite library bundled with PHP 5. That’s a lot of databases, and each one has its own connection syntax and server-specific functions. So what happens when you want to be able to [...] [23 Oct 2007]
Solution for “Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’” error when using PDO
If you’re trying to get up-and-running with PDO, you may experience a “Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’” error when trying to connect to your database, even if your php.ini and my.cnf files contain a different default socket path for MySQL. It’s counterintuitive to a degree, but it’s actually expected behavior. The good [...] [22 Oct 2007]