From 6910396ad72fca0bdd50f513f2e8c5f371bc5532 Mon Sep 17 00:00:00 2001 From: Phil Sturgeon Date: Fri, 13 Jul 2012 14:16:21 +0100 Subject: [PATCH] MySQL extension removal is not as imminent as suggested, but still shouldn't be used. Reference #101 --- _posts/06-01-01-Databases.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/_posts/06-01-01-Databases.md b/_posts/06-01-01-Databases.md index 741f242..11a6f50 100644 --- a/_posts/06-01-01-Databases.md +++ b/_posts/06-01-01-Databases.md @@ -11,9 +11,12 @@ Native drivers are great if you are only using ONE database in your application, or you need to connect to an Oracle database, then you will not be able to use the same drivers. You'll need to learn a brand new API for each database — and that can get silly. -As an extra note on native drivers, the mysql extension for PHP is currently deprecated as of PHP 5.4.0 and will be removed entirely in PHP 5.5.0. -That means if you are using `mysql_connect()` and `mysql_query()` in your applications then you will be faced with a rewrite when you upgrade to -the next version. You can rewrite this application now to use the [MySQLi extension][mysqli], or use PDO. +As an extra note on native drivers, the mysql extension for PHP is no longer in active development, and the official status since PHP 5.4.0 is +"Long term deprecation". This means it will be removed within the next few releases, so by PHP 5.6 (or whatever comes after 5.5) it may well be gone. If you are using `mysql_connect()` and `mysql_query()` in your applications then you will be faced with a rewrite at osme point down the +line, so the best option is to replace mysql usage with mysqli or PDO in your applications within your own development shedules so you won't +be rushed later on. _If you are starting from scratch then absolutely do not use the mysql extension: use the [MySQLi extension][mysqli], or use PDO._ + +* [PHP: Choosing an API for MySQL](http://php.net/manual/en/mysqlinfo.api.choosing.php) ## PDO