Categorized | MySQL

what is the difference between mysql and mysqli?

Posted on 14 April 2010 by Abidoon

I tried searching but all they say is which is faster and that sort of things. What’s the difference?

Tags | , , ,

3 Responses to “what is the difference between mysql and mysqli?”

  1. Jack says:

    http://en.wikipedia.org/wiki/MySQLi

    It’s a [better] way to interact with a MySQL database. Apples and oranges, see? ;)

  2. Andy T says:

    Just Wiki’d it, the meaning is down-to-earth simple: improvement in middleware, the backend side, for PHP anyway.

  3. efk says:

    In relation to PHP programming language, MySQL is the old database driver, and MySQLi is the Improved driver. MySQLi takes advantage of the newer features of MySQL 5. Lifted verbatim from the php.net site:

    – Object-oriented interface
    – Support for Prepared Statements
    – Support for Multiple Statements
    – Support for Transactions
    – Enhanced debugging capabilities
    – Embedded server support

    You have the choice of using mysql, mysqli, or PDO essentially.

    If you’re simply looking for a relational database, you need look no further than MySQL, though there are many options available. You can use DBD, Postgres, MySQL, MSSQL, sqlite, etc etc etc…

    HTH


Leave a Reply