# Can't create database when importing site

**URL:** https://community.kinsta.com/t/cant-create-database-when-importing-site/2802
**Category:** Application Support
**Created:** [December 4, 2023, 1:29pm UTC](https://community.kinsta.com/t/cant-create-database-when-importing-site/2802 "2023-12-04T13:29:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Noelle\_Steegs](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/noelle_steegs/32/1055_2.png) [@Noelle\_Steegs](https://community.kinsta.com/u/Noelle_Steegs)
#### Post date: [December 4, 2023, 1:29pm UTC](https://community.kinsta.com/t/cant-create-database-when-importing-site/2802/1 "2023-12-04T13:29:29Z")

</div>

Hi,

I am trying to import a site. I get this error in the log:

Error in operation SITE\_CREATION, step database: Error: Error (1): RERROR 1007 (HY000) at line 1: Can’t create database ‘EQ2\_Light’; database exists

How can I resolve this issue? I am not sure how/where to delete a partial database.

Thanks in advance for your help.

---

<div class="post-metadata">

### Author: ![Alessandro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/alessandro/32/2310_2.png) [@Alessandro](https://community.kinsta.com/u/Alessandro)
#### Post date: [December 4, 2023, 2:04pm UTC](https://community.kinsta.com/t/cant-create-database-when-importing-site/2802/2 "2023-12-04T14:04:08Z")

</div>

Hey @Noelle_Steegs 👋,  
This might be due to a previously failed import.  
Open DevKinsta and select any site. At the top, you should see a `Database manager` button

 ![Screenshot 2023-12-04 at 13.58.52](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/6/6438b58c99ebfc5137456cd1c457652a88a831b6.png)  
Once there, at the top of your screen you should be able to see a path like the following:

[MySQL] » [devkinsta\_db] » Database: YOURDATABASENAME

 ![Screenshot 2023-12-04 at 14.03.22](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/f/f7a04c416c7154c3af9aebe102de54343d2d91d7.png)

Click on `devkinsta_db`, then check the box at the side of EQ2\_Light and then click the button.  
This will delete the database called EQ2\_Light and its contents, so be sure you don’t need that and that is currently not in use by another local site.

Regards,  
Alessandro

---

<div class="post-metadata">

### Author: ![Noelle\_Steegs](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/noelle_steegs/32/1055_2.png) [@Noelle\_Steegs](https://community.kinsta.com/u/Noelle_Steegs)
#### Post date: [December 5, 2023, 8:05am UTC](https://community.kinsta.com/t/cant-create-database-when-importing-site/2802/3 "2023-12-05T08:05:49Z")

</div>

Thank you Alessandro. Because of time constraints I went for a workaround, where I renamed the site in My Kinsta. After that the site imported without problems. Have a nice day. 🙂

---

<div class="post-metadata">

### Author: ![Alessandro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/alessandro/32/2310_2.png) [@Alessandro](https://community.kinsta.com/u/Alessandro)
#### Post date: [December 5, 2023, 8:10am UTC](https://community.kinsta.com/t/cant-create-database-when-importing-site/2802/4 "2023-12-05T08:10:52Z")

</div>

I’m glad you were able to resolve the issue on your side @Noelle_Steegs 👍  
Feel free to reach out in case you need further help.

Regards,  
Alessandro

---

<div class="post-metadata">

### Author: ![Alessandro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/alessandro/32/2310_2.png) [@Alessandro](https://community.kinsta.com/u/Alessandro)
#### Post date: [December 5, 2023, 8:10am UTC](https://community.kinsta.com/t/cant-create-database-when-importing-site/2802/5 "2023-12-05T08:10:58Z")

</div>


