Answers.Body: <p>I solved the problem by setting up a new installation and then importing my backup database into that new installation. Now everything is there again and works.</p>
  
  <p>I must admit I haven't found the reason why this problem occurred. But the solution was ultimately quick and easy.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-04T07:31:42.897Z
Answers.LastActivityDate: 2017-04-04T07:31:42.897Z
Answers.UserDisplayName: Patrick
Body: <p>I am developing my Craft site locally with MAMP. Today when starting my site on localhost, I got this error:</p>
  
  <blockquote>
    <p>CDbCommand failed to execute the SQL statement: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'craft_mysite.craft_info' doesn't exist</p>
  </blockquote>
  
  <p>I have replaced the /app folder with a fresh copy, but it didn't help.</p>
  
  <p>Also, I can no longer log into my site: When navigating to my login page, I get the same error as mentioned above.</p>
  
  <p>I have a recent database backup in /craft/storage/backups. Is there a way to get my site up and running again?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-04-03T18:07:51.493Z
Comments.Text: Sorry for asking the obvious, but if you connect to your `craft_mysite` database, does the `craft_info` table exist?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-04-03T21:23:42.813Z
Comments.Text: Hi Brad. I checked inside my phpMyAdmin and I haven't found any such table.
Comments.UserDisplayName: Patrick
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-04-03T21:37:26.707Z
Comments.Text: Well, there's the problem. :)  Have you been through the Craft installer yet? Do any other tables exist in the `craft_mysite` database?
Comments.UserDisplayName: Brad Bell
Tags: <craft-pro>
Title: SQLSTATE[42S02]: Base table or view not found
ThreadText: # SQLSTATE[42S02]: Base table or view not found
  
  (Asked by: username_0 on 2017-04-03)
  
  I am developing my Craft site locally with MAMP. Today when starting my site on localhost, I got this error:
  
  > CDbCommand failed to execute the SQL statement: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'craft\_mysite.craft\_info' doesn't exist
  
  I have replaced the /app folder with a fresh copy, but it didn't help.
  
  Also, I can no longer log into my site: When navigating to my login page, I get the same error as mentioned above.
  
  I have a recent database backup in /craft/storage/backups. Is there a way to get my site up and running again?
  
  **Tags:** craft-pro
  
  > **Comments:**
  > **username_1**: Sorry for asking the obvious, but if you connect to your `craft_mysite` database, does the `craft_info` table exist?  
  > **username_0**: Hi username_1. I checked inside my phpMyAdmin and I haven't found any such table.  
  > **username_1**: Well, there's the problem. :)  Have you been through the Craft installer yet? Do any other tables exist in the `craft_mysite` database?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-04-04. Score: 2
  
  I solved the problem by setting up a new installation and then importing my backup database into that new installation. Now everything is there again and works.
  
  I must admit I haven't found the reason why this problem occurred. But the solution was ultimately quick and easy.
  
  
  ---
  
  