For some reason the pdo_mysql PHP extension, on our hosted server, fails to run a query that uses a MySQL view, with this error message.
SQLS
To connect to your MySQL server from PHP, there are two versions of drivers:
mysqlnd
libmysql
In order to connect to your MySQL server using mysqlnd
driver, you use the nd_pdo_mysql
extension, as seen in below screenshot.
Since libmysql
returns numeric types as strings, I use mysqlnd
with nd_pdo_mysql
in order to get native/strict data, so that numeric types are NOT returned as Strings.
From the MySQL official website: https://dev.mysql.com/downloads/connector/php-mysqlnd/
The MySQL native driver for PHP
mysqlnd
is a drop-in replacement for the MySQL Client Librarylibmysql
for the PHP script language.