Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [php-pdo]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Magento CE 2.3.1 Warning: PDOStatement::execute(): MySQL server has gone away in Zend/Db/Statement/Pdo.php on line 228

I am setting up existing magento project with PHP 7.1 and Mysql 8.0. when I run setup:upgrade its returning error: Module 'Ves_Megamenu': Installing schema... Upgrading schema... Warning: PDOStatement:...
Sagar Parikh's user avatar
1 vote
1 answer
75 views

Media Temple migrated to new server and website crashed

I am not a web developer. Looking for some insight. Media Temple recently migrated the domain to a new server and my website crashed. They have not provided any details of why it happened or what ...
Kaitlin 's user avatar
0 votes
1 answer
227 views

PDO exception after changing the slider configuration

I'm not a Magento developer but when a client asked me to change the slider. I changed and it was an easy option. After changing, I flushed the cache, and the site showing an error msg like PDO ...
Loud Icon's user avatar
1 vote
1 answer
2k views

How to install packages php7.2-hash php7.2-openssl php7.2-pdo_mysql if they are not found by apt

How to install packages php7.2-hash php7.2-openssl php7.2-pdo_mysql if they are not found by apt. php7.2-hash php7.2-openssl php7.2-pdo_mysql root@sample:~# apt install php7.2-hash Reading package ...
Alice's user avatar
  • 148
1 vote
0 answers
857 views

"Undefined class constant 'PDO::MYSQL_ATTR_SSL_KEY' " what is this error? I am using magento 2.3 and php 7.3

When I try to enable a new module by php bin/magento module:enable Mageplaza_HelloWorld command this comes.
Banedict Fring Drong's user avatar
2 votes
2 answers
932 views

How to enable LOAD DATA LOCAL INFILE in Magento 1.9

So far I found this closed question and solutions for Magento 2, but I'm hoping there's a solution for Magento 1 as well. This question should not be closed like the other one because it IS specific ...
ctrl-z pls's user avatar
1 vote
0 answers
90 views

PDO MYSQL error after moving database from remote server to same server magento is on

I am having an issue where when I go to my Magento site I get a 500 error and looking at the servers error log I see the blow Unable to load dynamic library '/usr/lib/php/20151012/pdo_mysql.so' I am ...
Jayreis's user avatar
  • 725
0 votes
1 answer
523 views

Magento 2: How to fix error `[Zend_Db_Adapter_Exception] SQLSTATE[HY000] [2002]

I install lampp on linux. Then install Magento 2. However, i get some errors when run any command.
Anikesh Shahi's user avatar
0 votes
1 answer
2k views

pdo_mysql extension is not installed error on magento2 [duplicate]

I'm facing this type of extension error on local machine. I also Checked pdo_mysql extension install on my server.It show enable status during execuate commond . which is : php -i|grep PDO It Shows ...
Anikesh Shahi's user avatar
2 votes
2 answers
16k views

I am getting this error "pdo_mysql extension is not installed"

When i use php bin/magento setup:static-content:deploy in ubuntu i am getting this error "pdo_mysql extension is not installed" so please help me?
Jinesh's user avatar
  • 266
1 vote
1 answer
6k views

pdo_mysql extension is not installed

IT`s a fresh Magento 2.1 files Initially all working fine , but after some time its giving this error [Zend_Db_Adapter_Exception] pdo_mysql extension is not installed cache:clean [--bootstrap="....
inrsaurabh's user avatar
  • 1,676
3 votes
0 answers
231 views

Magento1.9 Connect to External Mssql Database using Pdo_dblib

I am trying to connect an external database to get few data into Magento. I am using pdo_dblib to connect to the database. try { $hostname = "hostname"; $port = port; $dbname = "dbname"; $username = "...
Asheem Patro's user avatar
  • 1,070
0 votes
2 answers
416 views

extending a non-code (Varien) class in Magento located in lib - Varien_Db_Adapter_Pdo_Mysql

I have extended classes from core in Magento before, but am uncertain how to extend this class: Varien_Db_Adapter_Pdo_Mysql //located in lib/Varien/Db/Adappter/Pdo/Mysql.php How would I do this?
Oliver Williams's user avatar
1 vote
2 answers
8k views

Magento2 Upgrade Data script for custom module

I am working on installer and upgrade script of Magento 2 In which my InstallSchema, UpgradeSchema and InstallData scripts are working but UpgradeData.php is not working. Please check the following ...
Ashish Madankar M2 Professiona's user avatar
1 vote
1 answer
1k views

Cron.sh error: PHP Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'pdo_mysql extension is not installed'

The problem occurs in a Magento 1.9.2.4 installation (upgraded from 1.7.2 and then migrated to this new VPS) Trying to run the cron.sh on a centos VPS (DirectAdmin Controlpanel) This is returns the ...
bcnmm's user avatar
  • 21
0 votes
1 answer
91 views

Why don't bound params work in an IN statement?

In my custom resource model, I'm trying to use fetchAssoc to get some data from a table. I'm trying to quote an array into an IN statement, and I've noticed that it doesn't work (returns an empty ...
Yumecosmos's user avatar
1 vote
1 answer
3k views

PDO extension is required for this adapter - Magento Connect [duplicate]

I just did a new magento install of V 1.9.2.2 and when I go to magento connect I get the... "The PDO extension is required for this adapter but the extension is not loaded" error. BUT IT IS! I have ...
The_Dsigner's user avatar
0 votes
1 answer
2k views

Can't connect to Mysql with Magento 2/PHP 7

I'm working on a local build consisting of Magento 2.0 and PHP 7. I've got everything up and running, but when I try to load the site I get the following error: SQLSTATE[HY000] [2003] Can't connect ...
Mike Levy's user avatar
  • 795
-2 votes
1 answer
1k views

Magento2 Database Basic PDO Details

Regarding the upcoming Magento version 2 I'm asking myself, if: Will it make use of PDO? And if so, will it make use of PDO emulated prepares[1] ? I'm also asking myself about similar PDO related ...
hakre's user avatar
  • 2,831
1 vote
2 answers
3k views

Can't access Magento front-end or Admin after migrating to local MAMP environment

I need to copy webstore to my local environment to do some work on it before I apply these changes on the production version. I viewed multiple tutorials how to move a magento store to your local host ...
Anton Kastritskiy's user avatar