# WordPress Error Establishing Database Connection – MySQL Database Missing

**URL:** <https://forum.infinityfree.com/t/wordpress-error-establishing-database-connection-mysql-database-missing/120925>\
**Category:** Hosting Support\
**Created:** [September 26, 2026, 1:00pm UTC](https://forum.infinityfree.com/t/wordpress-error-establishing-database-connection-mysql-database-missing/120925 "2026-09-26T13:00:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonard](https://forum.infinityfree.com/letter_avatar/leonard/32/6_449c533f586939b6e5f246632a46421f.png) [@Leonard](https://forum.infinityfree.com/u/Leonard)\
**Post date:** [September 26, 2026, 1:00pm UTC](https://forum.infinityfree.com/t/wordpress-error-establishing-database-connection-mysql-database-missing/120925/1 "2026-09-26T13:00:58Z")

</div>

### Website URL

[https://leonardpetertech.infinityfreeapp.com](https://leonardpetertech.infinityfreeapp.com)

### Error Message

Error establishing a database connection.

### Other Information

My WordPress website was working after installation, but it now shows “Error establishing a database connection.”

My hosting account is active, and the WordPress files are still present in htdocs, including wp-config.php.

However, when I open MySQL Databases in the InfinityFree control panel, it says “No databases found on this account.”

Please check whether the original MySQL database created during the WordPress installation is missing, detached, or can be restored.

Hosting account: if0\_43008524

---

<div class="post-metadata">

**Author:** ![Leonard](https://forum.infinityfree.com/letter_avatar/leonard/32/6_449c533f586939b6e5f246632a46421f.png) [@Leonard](https://forum.infinityfree.com/u/Leonard)\
**Post date:** [September 26, 2026, 5:30pm UTC](https://forum.infinityfree.com/t/wordpress-error-establishing-database-connection-mysql-database-missing/120925/3 "2026-09-26T17:30:47Z")

</div>

Update: I followed the suggested database recovery step and created the database with the original name if0\_43008524\_wp378.

The database now appears in phpMyAdmin and contains my original WordPress tables, including wp1w\_options, wp1w\_posts, wp1w\_users, wp1w\_postmeta, and the Yoast tables.

However, my website still gives: “Cannot select database.”

WordPress can connect to the database server, but the database user 43008524\_1 cannot select/use if0\_43008524\_wp378.

Could you please check/fix the permissions or association between this database and the MySQL user?

I have not deleted or reinstalled WordPress.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [September 27, 2026, 9:13am UTC](https://forum.infinityfree.com/t/wordpress-error-establishing-database-connection-mysql-database-missing/120925/4 "2026-09-27T09:13:45Z")

</div>

It would seem that something went wrong with the database user created by Softaculous. Fixing the database permissions for the current user is hard, but there is a very simple workaround: just use your account’s primary database user instead.

You can edit your website’s database credentials directly by editing the wp-config.php file of your website. In there, you’ll want to replace the existing database user `43008524_1` with the database user that’s listed in the MySQL Databases page in the members area (which is `if0_43008524`), and do the same with the password.

That will give working database credentials to WordPress and should restore your website without any data lost.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [October 4, 2026, 9:13am UTC](https://forum.infinityfree.com/t/wordpress-error-establishing-database-connection-mysql-database-missing/120925/5 "2026-10-04T09:13:49Z")

</div>

Closed on October 4, 2026, 9:13am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
