nd_pdo_mysql working

MySQL_ND and MySQL PHP extensions are the different sets of drivers. They are 
provided by the different teams of developers (MySQL and PHP, respectively). 
The most important is the fact that they are mutually exclusive - you can not 
select them both simultaneously or mix them in any way. Otherwise, the php code 
will throw errors about the connection to the MySQL database.

Since PHP 5.4, mysqlnd is used as the default MySQL driver for all PHP MySQL 
extensions. But for PHP 5.3 and older PHP versions libmysqlclient is used as a 
connector from PHP to MySQL.

For PHP Selector we need to support both methods, that is why we added nd_* 
prefix for PHP MySQL extensions compatible with mysqlnd.

So, as a result:
- libmysqlclient works with  mysql, mysqli, pdo_mysql extensions (PHP 4.4 - PHP 5.3);
- mysqlnd works with nd_mysql, nd_mysqli, nd_pdo_mysql extensions (PHP 5.4 - PHP 7.1+).

So you have to choose only one of the following sets:

mysqlnd && nd_mysql && nd_mysqli && nd_pdo_mysql

###################### OR ########################

mysql && mysqli && pdo_mysql

Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source