What is the difference between mysql and mysqli in WAMP?
This question already has an answer here:
mysqli
and PDO
, both php APIs for accessing MySQL, are bundled into WAMP. There's nothing else to download. You should be good to go.
Good for you for noticing the deprecation of mysql
!
If you're doing this project to learn about dbms technology in general, you might consider working with PDO: you can use the same APIs (with small variations) to connect to other dbmss, including PostgreSQL, Oracle, and MS SQL Server. Even though some of those are expensive commercial products, you can get free evaluation copies for learning purposes to run on your own machine.
MySQL is the old database driver, and MySQLi is the Improved driver. MySQLi takes advantage of the newer features.
Advantages :
You have the choice of using mysql, mysqli, or PDO essentially.
just change mysql to mysqli and you should be good to go. Mysqli is an upgrade to mysql
with mysqli the user has the ability to utilize new features available in the newest versions of MySQL servers. This is one of the biggest advantages of MySQLi. Other platforms are unable to take full advantage of MySQL's newest capabilities. there are cons though, unlike PDO MySQLi only works with MySQL databases, PDO is more flexible and able to work with multiple database systems, including IBM, Oracle and MySQL. If you have to switch databases, MySQLi is not the best option.
链接地址: http://www.djcxy.com/p/26590.html