Hi.
I've downloaded an already created Drupal site from the remote server and pt it into my local development folder.
After that I've created Virtual Host specification for that site in my Apache v-host configuration settings.
When I try to run site locally, I get the following error msg:

PDOException: SQLSTATE[HY000]: General error: 11 database disk image is malformed: SELECT expire, value FROM (semaphore) WHERE name=:name; Array ([:name] => variable_init) in lock_may_be_available() (Line 167 ....\includes\lock.inc).

Now since PDO is database interface (and I moved the site to local, without knowing it's remote DB connection parameters), I'm guessing this has to do something with the way database was set?
Can someone please explain what can be the exact cause of this error, and how to fix it?
Thank You.

Comments

John_B’s picture

There are many questions on moving Drupal sites from people who don't read the documentation, but maybe you did. The last one I answered a few hours ago (http://drupal.org/node/1699162, but Googling would surely bring up some of my dozens of answers many of which are more detailed) I simply pointed to the documentation. Anyway if you say how you moved the database (or simply link to which documentation you followed, if that is quicker) the point where things went wrong may be easier to spot.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors