Forum Moderators: coopster

Message Too Old, No Replies

The MySQL Native Driver

Replaces MySQL Client Library (libmysql)

         

coopster

8:56 pm on Mar 6, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



What is it?

MySQL Native Driver [php.net] is a replacement for the MySQL Client Library (libmysql). MySQL Native Driver is part of the official PHP 5.3 and PHP 6 branches.


There are some neat features coming in the PHP 5.3 release when it comes to MySQL support, including 3 new statistical functions that are going to be quite helpful in troubleshooting and tweaking applications that use MySQL.

henry0

11:40 am on Mar 7, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Indeed very interesting!
I followed your supplied link but it seems not to cover a simple question: (or I did not find the answer)
Imagine I update to PHP5.3 and later to 6
then is there anything to be changed in my actual MySQL classes, another word how will you default to the new driver?

Thanks coopster for the head up.

coopster

8:03 pm on Mar 7, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It's on that page.

What it is not

Although MySQL Native Driver is written as a PHP extension, it is important to note that it does not provide a new API to the PHP programmer. The programmer APIs for MySQL database connectivity are provided by the MySQL extension, mysqli and PDO MYSQL. These extensions can now use the services of MySQL Native Driver to communicate with the MySQL Server. Therefore, you should not think of MySQL Native Driver as an API.

The driver is set up at compile time (and in Windows it is the default in PHP 5.3 and PHP 6). You keep using the same APIs and functions, your classes and use of functions does not change. The API functions are different than the driver itself.

The left hand navigation on the manual page linked has further reading, particularly the Overwiew and the Installing/Configuring links are worthwhile reading at the very least.

henry0

8:54 pm on Mar 7, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Got it
thanks

coopster

9:14 pm on Mar 7, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Sure.

Overwiew

I'm writing like Elmer Fudd now :)