&reftitle.constants; &pdo.driver-constants; PDO::MYSQL_ATTR_USE_BUFFERED_QUERY (integer) If this attribute is set to &true; on a PDOStatement, the MySQL driver will use the buffered versions of the MySQL API. If you're writing portable code, you should use PDOStatement::fetchAll instead. Forcing queries to be buffered in mysql getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') { $stmt = $db->prepare('select * from foo', array(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true)); } else { die("my application only works with mysql; I should use \$stmt->fetchAll() instead"); } ?> ]]> PDO::MYSQL_ATTR_LOCAL_INFILE (integer) Enable LOAD LOCAL INFILE. Note, this constant can only be used in the driver_options array when constructing a new database handle. PDO::MYSQL_ATTR_INIT_COMMAND (integer) Command to execute when connecting to the MySQL server. Will automatically be re-executed when reconnecting. Note, this constant can only be used in the driver_options array when constructing a new database handle. PDO::MYSQL_ATTR_READ_DEFAULT_FILE (integer) Read options from the named option file instead of from my.cnf. This option is not available if mysqlnd is used, because mysqlnd does not read the mysql configuration files. PDO::MYSQL_ATTR_READ_DEFAULT_GROUP (integer) Read options from the named group from my.cnf or the file specified with MYSQL_READ_DEFAULT_FILE. This option is not available if mysqlnd is used, because mysqlnd does not read the mysql configuration files. PDO::MYSQL_ATTR_MAX_BUFFER_SIZE (integer) Maximum buffer size. Defaults to 1 MiB. This constant is not supported when compiled against mysqlnd. PDO::MYSQL_ATTR_DIRECT_QUERY (integer) Perform direct queries, don't use prepared statements. PDO::MYSQL_ATTR_FOUND_ROWS (integer) Return the number of found (matched) rows, not the number of changed rows. PDO::MYSQL_ATTR_IGNORE_SPACE (integer) Permit spaces after function names. Makes all functions names reserved words. PDO::MYSQL_ATTR_COMPRESS (integer) Enable network communication compression. This is not supported when compiled against mysqlnd. PDO::MYSQL_ATTR_SSL_CA (integer) The file path to the SSL certificate authority. &version.exists.asof; 5.3.7. PDO::MYSQL_ATTR_SSL_CAPATH (integer) The file path to the directory that contains the trusted SSL CA certificates, which are stored in PEM format. &version.exists.asof; 5.3.7. PDO::MYSQL_ATTR_SSL_CERT (integer) The file path to the SSL certificate. &version.exists.asof; 5.3.7. PDO::MYSQL_ATTR_SSL_CIPHER (integer) A list of one or more permissible ciphers to use for SSL encryption, in a format understood by OpenSSL. For example: DHE-RSA-AES256-SHA:AES128-SHA &version.exists.asof; 5.3.7. PDO::MYSQL_ATTR_SSL_KEY (integer) The file path to the SSL key. &version.exists.asof; 5.3.7.