Questions tagged [pdo]
PHP Data Objects (PDO) defines a lightweight and consistent interface for accessing databases.
80 questions
Score of 0
1 answer
593 views
During upgrade from PHP 8.4 to 8.5 PDO has stopped working
PDO stopped working after apt update to PHP 8.5 and back to 8.4.
PDO was working with 8.4, why would this update and disable PDO?
How do I get PDO to work again?
I attempted to modify php.ini for both ...
Score of 1
1 answer
565 views
PHP-fpm (v 8.3) not using sqlsrv or pdo_sqlsrv on Ubuntu 24.04
My VM running Ubuntu 24.04 is giving an error that it cannot find the driver for SQLServer (aka MSSQL-Server aka sqlsrv). Sure enough, a page with phpinfo(); shows no sqlsrv or pdo_sqlsrv.
Here were ...
Score of 1
1 answer
586 views
What might cause a PDO MySQL connection to be terminated?
Summarize the problem
My PDO (MySQL) connection is disconnected during execution of the code.
The connection is created successfully, but around 0.05% of the time the Error log reports a disconnection....
Score of 2
1 answer
2960 views
PHP PDO Very Slow on Fetch
I have a problem with a couple of queries running in PDO on PHP connecting to MSSQL server 2019.
I have checked the time in SSMS and its fast.
I have also added some timers into my code so I can see ...
Score of 0
1 answer
101 views
php pdo comment page error [closed]
sorry for my English.
My knowledge about the database is very simple.
I have to come this code from a Forum.
My problem, when anyone writes a comment, it shows on all Website, when I to wish that ...
Score of 0
1 answer
506 views
Apache is getting SUSPENDED in MSSQL by another process when doing more than 5-6 queries via PHP PDO resulting in timeout
I will try to be as detailed as possible.
Up until now I was only using Stack Overflow and other sites like this but never posting. I was always able to find the answer to my question. But not this ...
Score of 0
1 answer
5492 views
Yet another PDO could not find driver issue
I've been working for the last two nights to set up my own LEMP server on Amazon ec2. I'm not a server expert so it's been slow going, and the latest error "could not find driver" is given when ...
Score of 1
0 answers
523 views
Mysql has gone away error randomly
I have a web application written in php. In this app, I have a script(CLI) which is really heavy. After this script finishes its job, I get "mysql has gone away" error in my normal http request for a ...
Score of 1
1 answer
3046 views
MySQL PDO Too many connections
I have an application that is constantly inserting to a stats table. The average number of open connections is usually about 20 to 22.
There is also a processing script in PHP run by a cron that runs ...
Score of 1
1 answer
13341 views
Debian 9 stretch with PHP 7.2: unable to install PDO PHP Extension
I have installed PHP 7.2 on a Debian 9 server (a docker container actually) and installed some php modules.
But when I get to gd and pdo/mysql apt is unable to find any packages:
$apt install php-...
Score of 1
2 answers
3092 views
SQLSTATE[HY000] [2002] No such file or directory, google cloud app engine flexible
I am trying to connect cloud sql with google cloud app engine flexible.
My code is as bellow:
$dsn = getenv('MYSQL_DSN');
$user = getenv('MYSQL_USER');
$password = getenv('MYSQL_PASSWORD');
try {
...
Score of 5
3 answers
15247 views
PHP 7.2.8 PDO Fails to Connect to MySQL 8.0.12 (GA) in AWS EC2 LEMP Stack
I'm testing a new LEMP webserver built with Ubuntu Server 18.04 LTS, NGINX 1.14, PHP 7.2.8, and MySQL 8.0.12. It is an AWS EC2 instance using the official Canonical AMI. Web and PHP work as intended ...
Score of 4
3 answers
11073 views
Linux : Undefined symbol: php_pdo_register_driver in Unknown on line 0
When i add the extenstion extension=pdo_sqlsrv.so
in php.ini file in linux server with PHP v7.0 it's giving following error
undefined symbol: php_pdo_register_driver in Unknown on line 0
Please Help ...
Score of 0
0 answers
651 views
Fedora26 PHP 7.1.10 PDO_SQLITE Startup Warning: Unable to load dynamic library
php -v responds with :
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64
/php/modules/pdo_sqlite.so' - /usr/lib64/php/modules/pdo_sqlite.so: undefined symbol: ...
Score of 0
1 answer
1501 views
PHP PDO oci extension stopped loading
After going through our most recent deployment, pdo_oci stopped loading up with the rest of the php PDO extensions...
None of the apache (except for hostname) and php configurations were changed in ...