<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>

CC BY-SA 3.0
2017-04-04T07:31:42.897Z
2017-04-04T07:31:42.897Z
Patrick
<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>

CC BY-SA 3.0
2017-04-03T18:07:51.493Z
Sorry for asking the obvious, but if you connect to your `craft_mysite` database, does the `craft_info` table exist?
Brad Bell
CC BY-SA 3.0
2017-04-03T21:23:42.813Z
Hi Brad. I checked inside my phpMyAdmin and I haven't found any such table.
Patrick
CC BY-SA 3.0
2017-04-03T21:37:26.707Z
Well, there's the problem. :)  Have you been through the Craft installer yet? Do any other tables exist in the `craft_mysite` database?
Brad Bell
<craft-pro>
SQLSTATE[42S02]: Base table or view not found
# 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 Brad. 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.


---

