Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6609037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:40:23+00:00 2026-05-25T19:40:23+00:00

My drupal based website was working fine till yesterday but suddenly from no where

  • 0

My drupal based website was working fine till yesterday but suddenly from no where today an error appeared

Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /.../includes/database/mysql/database.inc on line 43

I didn’t even changed or updated anything since yesterday, it suddenly appears from no where, before that it was working fine

On line 43 of database.inc this was written

 PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => TRUE,

I googled and got some idea that this is some sort of PDO_MYSQL error, i have not much idea why this error suddenly arrived

Can anyone please help me out

Additional information

  • Linux Shared Webhosting
  • DRUPAL 7
  • Apache version 2.2.20
  • PHP version 5.2.17
  • MySQL version 5.0.92-community-log
  • cPanel Version 11.30.3 (build 5)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:40:24+00:00Added an answer on May 25, 2026 at 7:40 pm

    According to a lot of different sources the pdo_mysql extension must be missing from your PHP installation. Either add it in php.ini or ask your hosting provider to do it for you.

    Links:

    • Fatal error in D7 HEAD while running ‘drush
      update’
    • Drupal 7: PHP fatal error ‘Undefined class constant MYSQL_ATTR_USE_BUFFERED_QUERY’ when trying to install on MySQL database
    • Fatal Error: Undefined class constant ‘MYSQL_ATTR_USE_BUFFERED_QUERY’

    They all say the same thing…install the pdo_mysql extension. Sounds like your hosting provider has disabled it!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a Drupal-based website that works fine on the remote server
I am working on setting up a Drupal based website and wanted to replace
I have a form on my website (based on Drupal), and I've added a
I manage a Drupal 7 based website for my College's Student's Association. Most of
I am administering a drupal based website for a small company. We want to
I am working on a Drupal based site and notice there are a lot
I have a drupal based website with too many enabled modules, and i need
I have drupal based website (Drupal version is 6.19), it is very heavy content
I have a website which is up and running on drupal. Its product based
I'm looking at the slow query log from a drupal-based webapp, and have lines

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.