cancel
Showing results for 
Search instead for 
Did you mean: 

reindex failure - Class 'Magento_Db_Adapter_Pdo_Mysql' not found

reindex failure - Class 'Magento_Db_Adapter_Pdo_Mysql' not found

I recently upgraded our shop to Magento 1.9.3.2 but we've had indexing issues since.

when I run the reindex command:-
         php -f /var/www/shell/indexer.php reindexall

I get this error:-


PHP Fatal error: Class 'Magento_Db_Adapter_Pdo_Mysql' not found in /var/www/app/code/core/Mage/Core/Model/Resource.php on line 175

 

I tried to switch the compler off but I get the exact same error for these commands:-
        php -f compiler.php clear
        php -f compiler.php disable

 

we tried changing the permissions to 775 on this file (where the 'Magento_Db_Adapter_Pdo_Mysql' class is defined)
/var/www/lib/Magento/Db/Adapter/Pdo/Mysql.php

but it didn't help.

 

I cleared the server caches here and restarted apache2:-
       rm -f  -r /var/www/var/cache2/*
       rm -f -d -r /var/www/var/cache/*
       rm -f -r /var/www/var/session/*

Can anyone suggest how we can resolve this?
Should we purge then reinstall PHP 5.6.3 perhaps?