Can't delete rogue database

Error Message

I think during one of softaliscious unsuccessful Wordpress installs a mistake was made and a database with a malformed name was created. When I try to delete that database in the cpanel mysql databases section it says “this database is not owned by you.” I am not using the database and have created a separate one which is being utilized by my current wordpress site. I want to delete the rogue database but need instructions on how to do it since it seems permissions for that database have been corrupted. Also that rogue database only shows up in the cpanel side and not the InfinityFree dashboard mysql database list.

At the very, very, very minimum could you share which database you’re referring to? I cannot check or do anything for you if I only have your interpretation of the issue.

Yes it’s database if042600783__u790969423 hostname sql108.infinityfree.com although softalicious had a different hostname for this rogue database before i reset that and linked it with the proper database. you can see the database name is malformed because my user is: if0_42600783 and all databases should have that prefix by default. This one seems to have shifted that underscore just before the second underscore. Whatever you do please do not delete the other database which has the exact same characters just the underscores in the proper places.

Right, that’s indeed not a valid database name. The “correct” database also doesn’t have a valid name, but I’ll try to make sure that one remains untouched.

Do you know how exactly you were able to create these databases though? Because neither of these names should be possible to use.

The correct database was created in the infinityfree dashboard I think. The prefix there is if0_42600783_ so that’s why I was able to create the existing correct database. I just added the same suffix from my previous web host wordpress database. So any subsequent databases would look like:
if0_42600783_hello
if0_42600783_8908098098
if0_42600783_u559999

etc. That is my understanding of it.

Please let me know if you’re able to clean up that rogue database and thank you for your support.

Hello,

It looks like you deleted both databases and my site is down. Can you help me recover the healthy database?

Unfortunately if the database is gone, it’s gone. There’s no server side backup to recover from

To the surprise of definitely not me, they deleted both databases and not just the one I told them to delete.

I anticipated this and made a backup of the good database yesterday. I just recreated it and restored the backup myself.

You sir are a legend! Thanks so much for your support!

in this situation I stand corrected :slight_smile:

Fingers crossed everything works for you now

Yes everything back up and running. I did have an older backup of the database but was hoping I could recover the most recent version hosted here. Thank heavens it was restored and I have just exported a backup​:+1: