# 4 lib/ Zend/ Db/ Adapter/ Pdo/ Abstract. 39; username' = > ' root', ' password' = > ' mysql' ) ) ;. Also below line of code : $ results = $ this- > adapter- > query( $ sql- > getSqlStringForSqlObject( $ table), $ DB : : QUERY_ MODE_ EXECUTE) ;. Ref Fatal error : class not found in Zend. Try adding use PDO; after your namespace or just before your class or at the top of your PHP file. If they are not present, simply add the lines above to the bottom of the php. ini file and save it. Ensure PDO is loaded, and the PDO drivers for your database are also loaded. You can find the documentation of the current version at docs. Creating an adapter can simply be done by instantiating the Zend\ Db\ Adapter\ Adapter class. The most common use case, while not the most explicit, is to pass an array of configuration to the Adapter. Mysqli: The ext/ mysqli driver; Pgsql: The ext/ pgsql driver; Sqlsrv: The ext/ sqlsrv driver ( from Microsoft) ; Pdo_ Mysql: MySQL through the PDO extension; Pdo_ Sqlite: SQLite though the PDO extension. Learn how to fix the Class ' PDO' not found error.
/ home/ / public_ html/ core/ lib/ Drupal/ Core/ Database/ Driver/ mysql/ Connection. Specific functions for the Mysql database system.