# The MySQL Connection could not be established

**URL:** <https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241>\
**Category:** Hosting Support\
**Created:** [April 9, 2022, 4:22pm UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241 "2022-04-09T16:22:43Z")\
**Posts on this page:** 20\
**Page:** 3

<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:** [April 10, 2022, 3:43pm UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/43 "2022-04-10T15:43:17Z")

</div>

The issues with SQL102 have been solved now as best as possible. The missing databases have been restored and sites using this database server should work again!

The issue was caused by a system issue causing some data to be sent to the wrong server. Most of this has been corrected now, but there may be a small number of users for which the data is still located on the wrong server.

If you had a database and it disappeared, please send a ticket to iFastNet at [https://support.ifastnet.com](https://support.ifastnet.com) so they can migrate your data to the right server.

---

<div class="post-metadata">

**Author:** ![anon68484822](https://forum.infinityfree.com/letter_avatar/anon68484822/32/6_449c533f586939b6e5f246632a46421f.png) [@anon68484822](https://forum.infinityfree.com/u/anon68484822)\
**Post date:** [April 10, 2022, 4:33pm UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/44 "2022-04-10T16:33:02Z")

</div>

Ok thanks, my database is back but changed from sql102 to sql103, everything seems to be normal there but the site can’t connect to the database yet, something else I have to do? I only have Abantecart installed.

epiz\_29508955 if needed.

Thanks

Edit, I have to update config.php to see sql103.

---

<div class="post-metadata">

**Author:** ![Alperen1907](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/alperen1907/32/44885_2.png) [@Alperen1907](https://forum.infinityfree.com/u/Alperen1907)\
**Post date:** [April 10, 2022, 9:58pm UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/48 "2022-04-10T21:58:51Z")

</div>

[https://support.ifastnet.com/](https://support.ifastnet.com/) I can’t open an account from this link and I need database of all my sites SQL103 please help!

Username: epiz\_25991174

---

<div class="post-metadata">

**Author:** ![wackyblackie](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wackyblackie/32/43350_2.png) [@wackyblackie](https://forum.infinityfree.com/u/wackyblackie)\
**Post date:** [April 10, 2022, 9:59pm UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/49 "2022-04-10T21:59:45Z")

</div>

Did you create an account with iFastNet support? If it was your first time, you must click “Register” and the. You can sign in.

---

<div class="post-metadata">

**Author:** ![Alperen1907](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/alperen1907/32/44885_2.png) [@Alperen1907](https://forum.infinityfree.com/u/Alperen1907)\
**Post date:** [April 10, 2022, 10:02pm UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/50 "2022-04-10T22:02:45Z")

</div>

I only have an infintyfree account

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [April 10, 2022, 10:03pm UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/51 "2022-04-10T22:03:32Z")

</div>

You need to create an account with iFastNet support if you want to use their support desk. Also, please do not create more then one topic on an issue.

---

<div class="post-metadata">

**Author:** ![Alperen1907](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/alperen1907/32/44885_2.png) [@Alperen1907](https://forum.infinityfree.com/u/Alperen1907)\
**Post date:** [April 10, 2022, 10:07pm UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/52 "2022-04-10T22:07:25Z")

</div>

I just want my database information

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [April 10, 2022, 10:08pm UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/53 "2022-04-10T22:08:49Z")

</div>

> [@Admin](#):
>
> If you had a database and it disappeared, please send a ticket to iFastNet at [https://support.ifastnet.com](https://support.ifastnet.com) so they can migrate your data to the right server.

> [@wackyblackie](#):
>
> If it was your first time, you must click “Register” and the. You can sign in.

.

---

<div class="post-metadata">

**Author:** ![petreion](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/petreion/32/23843_2.png) [@petreion](https://forum.infinityfree.com/u/petreion)\
**Post date:** [April 11, 2022, 11:23am UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/54 "2022-04-11T11:23:54Z")

</div>

Hello  
iFastNet recovered my database but the database is corrupted and without backup there i no way to recover the website.

---

<div class="post-metadata">

**Author:** ![anon98454945](https://forum.infinityfree.com/letter_avatar/anon98454945/32/6_449c533f586939b6e5f246632a46421f.png) [@anon98454945](https://forum.infinityfree.com/u/anon98454945)\
**Post date:** [April 11, 2022, 1:00pm UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/55 "2022-04-11T13:00:54Z")

</div>

Similar to above, perhaps. Got the fine folks at iFast to recover my data, but I’m still seeing the error 1045 - Access denied for user ‘epiz\_31474217’@‘192.168.2.186’ (using password: YES)

Is there another step on my part that I may have missed…??

Thanks,

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [April 11, 2022, 1:25pm UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/56 "2022-04-11T13:25:36Z")

</div>

> [@anon98454945](#):
>
> - Access denied for user ‘epiz\_31474217’@‘192.168.2.186’ (using password: YES)

> [@Common MySQL Connection Errors](https://forum.infinityfree.com/t/common-mysql-connection-errors/49338):
>
> Many websites use MySQL databases to store information and settings. However, there are some reasons why the connection to the database may fail. This article describes some commonly seen error messages when connecting to a database, as well as some general tips to keep in mind when setting up a database connection. Common Error Messages Using MySQL is great, but the error message returned if there is an issue logging in to your database can be quite confusing. Here are some commonly seen error…

---

<div class="post-metadata">

**Author:** ![anon98454945](https://forum.infinityfree.com/letter_avatar/anon98454945/32/6_449c533f586939b6e5f246632a46421f.png) [@anon98454945](https://forum.infinityfree.com/u/anon98454945)\
**Post date:** [April 11, 2022, 2:00pm UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/57 "2022-04-11T14:00:50Z")

</div>

Hey thanks for all the help. I stumbled upon the fact that they changed me from 102, to 103. Figured out the config thing and just like that, my silly little web page is back up.

Thanks again…

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [April 12, 2022, 6:27pm UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/58 "2022-04-12T18:27:15Z")

</div>

Split this topic on April 12, 2022, 6:27pm UTC

3 posts were split to a new topic: [Database Corrupted](https://forum.infinityfree.com/t/database-corrupted/60373)

---

<div class="post-metadata">

**Author:** ![axastos](https://forum.infinityfree.com/letter_avatar/axastos/32/6_449c533f586939b6e5f246632a46421f.png) [@axastos](https://forum.infinityfree.com/u/axastos)\
**Post date:** [April 14, 2022, 7:53am UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/59 "2022-04-14T07:53:37Z")

</div>

Hi, i had the same problem and the databases were disappeared. Now after i opened a ticket to  
ifastnet the database seems to be back, but i still get the same error when trying to access my site “Error establishing a database connection”. I have a softaculous installation.

Please could you advise?

**Username** epiz\_30259896  
**Main Domain** [jkzkda30.epizy.com](http://jkzkda30.epizy.com)  
[http://svak-alexpolis.gr](http://svak-alexpolis.gr)

---

<div class="post-metadata">

**Author:** ![wackyblackie](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wackyblackie/32/43350_2.png) [@wackyblackie](https://forum.infinityfree.com/u/wackyblackie)\
**Post date:** [April 14, 2022, 8:55am UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/60 "2022-04-14T08:55:35Z")

</div>

Maybe your sql server changed. Verify the credentials in wp-config.php to the ones in the Client Area.

---

<div class="post-metadata">

**Author:** ![axastos](https://forum.infinityfree.com/letter_avatar/axastos/32/6_449c533f586939b6e5f246632a46421f.png) [@axastos](https://forum.infinityfree.com/u/axastos)\
**Post date:** [April 14, 2022, 9:20am UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/61 "2022-04-14T09:20:22Z")

</div>

I have the same values in softaculous:

 ![image](https://forum-cdn.infinityfree.net/original/3X/5/4/543a12889dbc23cf1db9cf0348e72e30cc8afa72.jpeg)

and in the wp-config

The value in the client area is different, but this is also the same for other sites that work.

Any suggestions?

---

<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:** [April 14, 2022, 9:50am UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/62 "2022-04-14T09:50:58Z")

</div>

I would recommend to use the database username and password shown in the client area, and the database hostname shown in the control panel. Those credentials are best guaranteed to work.

---

<div class="post-metadata">

**Author:** ![axastos](https://forum.infinityfree.com/letter_avatar/axastos/32/6_449c533f586939b6e5f246632a46421f.png) [@axastos](https://forum.infinityfree.com/u/axastos)\
**Post date:** [April 14, 2022, 12:47pm UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/63 "2022-04-14T12:47:48Z")

</div>

thanks a lot. it worked.

---

<div class="post-metadata">

**Author:** ![anon7175912](https://forum.infinityfree.com/letter_avatar/anon7175912/32/6_449c533f586939b6e5f246632a46421f.png) [@anon7175912](https://forum.infinityfree.com/u/anon7175912)\
**Post date:** [April 15, 2022, 6:23am UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/64 "2022-04-15T06:23:06Z")

</div>

what happens if you try to update a plugin durning that?

---

<div class="post-metadata">

**Author:** ![half\_dolphin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/half_dolphin/32/24033_2.png) [@half\_dolphin](https://forum.infinityfree.com/u/half_dolphin)\
**Post date:** [April 15, 2022, 8:44am UTC](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241/65 "2022-04-15T08:44:35Z")

</div>

Is this issue related to the current problem most of us are facing with regards to failure to open/acess Cpanel and File Manager? Please assist. My username is epiz\_28831306

[Previous page](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241.md?page=2)

[Next page](https://forum.infinityfree.com/t/the-mysql-connection-could-not-be-established/60241.md?page=4)
