MySQL database disappeared - WordPress database recovery

Website URL

Www.vendixa.xo.je

Error Message

Hello,

I need help recovering my WordPress MySQL database.

My website is:
http://www.vendixa.xo.je

The WordPress installation is still present on the server, and the installation details show:

Database name: “if0_41385205_wp111”
Database host: “sql303.byetcluster.com”
Database user: “41385205_1”
WordPress directory:
“/home/vol7_5/infinityfree.com/if0_41385205/htdocs”

However, when I access the database section, it says that there are no databases on the account, and WordPress shows “Error establishing a database connection”.

The WordPress files are still present. I also have important WordPress data and custom Code Snippets that I do not want to lose.

Could you please check whether the original database “if0_41385205_wp111” still exists on your servers and, if possible, restore/reconnect it to my account?

Please do not delete or reinstall my WordPress files. I would like to recover the existing database first.

If the database cannot be restored directly, please let me know whether a backup of this database is available and how I can recover it.

Thank you for your help.

The first thing I would do is go to the MySQL Databases list in the members area and check the current list of databases. That will show the list of databases on your account, which should help narrow down whether the database is actually missing, or this is just a credential issue.

If the database is there, either with this name or with another name that contains the right data, then the fix is simple: update your wp-config.php with the correct database settings for your account.

If the database isn’t in the list, there is still a very slight chance that it actually exists, and this is just a permissions issue (those do happen, unfortunately). If so, you can recover it by simply creating a new database with the same name. Doing so will NOT recreate the database, it will simply add the permissions necessary to use it.

But if that gives you an empty database, then the honest answer is that your database is gone.

And when I say gone, I really mean it. We do not create backups on free hosting at all, so the data you see is the data we have, and anything that’s deleted by anyone for any reason is gone permanently.

Well I didn’t expected backups on free web hosting but at least I thought there will be some paid disaster recovery offer. Now that I know that no backups at all are made for free hosting. Does the MySQL instance allow some sort of stored procedure for the database to be automatically exported to some online file hosting or even another instance of MySQL on another provider? @Admin

Hello,

Thank you for your detailed explanation.

I followed your instructions and created a new database with the exact same name as my previous WordPress database:

“if0_41385205_wp111”

The database is now visible in phpMyAdmin, but it is completely empty. phpMyAdmin says:

«“No tables found in this database.”»

My WordPress website is still showing “Error establishing a database connection.”

My website is:

“http://www.vendixa.xo.je”

The old database details were:

- Database name: “if0_41385205_wp111”

- Database host: "sql303.byetcluster.com’’

Could you please check if the old database “if0_41385205_wp111” still exists somewhere on the server, or if there is any way to recover it?

The database contains important WordPress/Vendixa data, including my users, products, orders, notifications and other custom marketplace data.

I have not deleted my website files from the “htdocs” directory, and I have not uninstalled WordPress.

If the old database is permanently gone, please confirm that clearly so I know what my options are.

Thank you very much for your help.

Then it is permanently gone and cannot be recovered. If you don’t have your own backup, hopefully this can be a “lesson learned” situation.

Never trust any singular device/server/service with data you want to keep. Always have multiple backups and follow the 3-2-1 rule.

Such a service would require backups to be taken, but the number of people who would pay for such a service would never make it worth it. Server space costs money, which is something that free hosting users don’t pay.

I understand that a paid recovery option would be ideal, but that’s not how it works. The best, and maybe only, method to protect against accidental data deletion is to have backups. But you can only backup data before it’s deleted, not after the fact.

Backups are something that can be offered in theory, but we don’t provide it with free hosting.

The only other option I can think of is forensic recovery, which is very complicated, very expensive, and doesn’t guarantee that any data can be recover at all. This is not a service we can realistically offer.

The closest thing to this is automated backups provided by the hosting provider. Which is, again, not a service we provide.

But those backups are then made to backup storage provided by the provider, not external storage, and not to an external database. Both of those options are messy: you’d need to implement dozens of different storage drivers, ask your users to source them and configure them correctly, and deal with issues like storage being full or providers being difficult.

All of this puts a lot of additional work on both the provider and the customer and neither is desirable for a web hosting service, which is both intended to be an easy to use, all-in-one package for users and a simple to manage commodity service for providers.

@Greenreader9 already answered this question.

Databases cannot get misplaced. They either exist whether they should or they don’t exist at all. You’ve done all that is possible to check whether the database exists and found that it doesn’t. And if the database doesn’t exist, it means we don’t have it, and it means we cannot recover it.