# Step 2 of the installation

**URL:** <https://ask.gibbonedu.org/t/step-2-of-the-installation/8242>\
**Category:** Installation\
**Created:** [June 28, 2023, 2:04pm UTC](https://ask.gibbonedu.org/t/step-2-of-the-installation/8242 "2023-06-28T14:04:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malsie](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@Malsie](https://ask.gibbonedu.org/u/Malsie)\
**Post date:** [June 28, 2023, 2:04pm UTC](https://ask.gibbonedu.org/t/step-2-of-the-installation/8242/1 "2023-06-28T14:04:15Z")

</div>

Good day All,

I am having this issue while trying to connect MySQL to Gibbon here is the error  
A database connection could not be established. Please [try again](https://vivavoyages.co.za/installer/install.php).  
Error details: SQLSTATE[HY000] [2002] Connection refused

Can someone please assist me I have the correct username and password.

Thanks

---

<div class="post-metadata">

**Author:** ![tiekubd](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/tiekubd/32/163_2.png) [@tiekubd](https://ask.gibbonedu.org/u/tiekubd)\
**Post date:** [June 28, 2023, 10:32pm UTC](https://ask.gibbonedu.org/t/step-2-of-the-installation/8242/2 "2023-06-28T22:32:03Z")

</div>

Hello Malsie,

Can you provide a screenshot of where you are seeing this error?

Thanks

---

<div class="post-metadata">

**Author:** ![Malsie](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@Malsie](https://ask.gibbonedu.org/u/Malsie)\
**Post date:** [June 29, 2023, 5:12am UTC](https://ask.gibbonedu.org/t/step-2-of-the-installation/8242/3 "2023-06-29T05:12:39Z")

</div>

![Screenshot (185)](https://ask.gibbonedu.org/uploads/default/original/1X/cc0b8cbd992181e1d3187bbb47bd14b6a02f094d.png)

Hello Tiekubd, Thank you for your response above is the screenshot.

---

<div class="post-metadata">

**Author:** ![tiekubd](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/tiekubd/32/163_2.png) [@tiekubd](https://ask.gibbonedu.org/u/tiekubd)\
**Post date:** [June 29, 2023, 12:40pm UTC](https://ask.gibbonedu.org/t/step-2-of-the-installation/8242/4 "2023-06-29T12:40:01Z")

</div>

You can follow the Manual Installation steps found on this page:

[https://docs.gibbonedu.org/administrators/getting-started/installing-gibbon/](https://docs.gibbonedu.org/administrators/getting-started/installing-gibbon/)

and watch the youtube video on the same page:  
Gibbon Training Day 2021 - Session 1 - Installing Gibbon

For the portion of the screenshot you have provided, your entry for Database Server should most likely be **localhost** , depending on who your web host is.

![localhost](https://ask.gibbonedu.org/uploads/default/original/1X/8354d77607e8a5b8b12579297719ffb3f47f64be.png)

After that enter the Database name, username, and password for the database you are using/have created.

I hope this helps.

---

<div class="post-metadata">

**Author:** ![Malsie](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@Malsie](https://ask.gibbonedu.org/u/Malsie)\
**Post date:** [June 29, 2023, 4:12pm UTC](https://ask.gibbonedu.org/t/step-2-of-the-installation/8242/5 "2023-06-29T16:12:35Z")

</div>

I have tried to watch the videos but it’s still not working. I am using shared hosting, not a local host.

Is there any way I can get around?

---

<div class="post-metadata">

**Author:** ![john811c](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/j/5f9b8f/32.png) [@john811c](https://ask.gibbonedu.org/u/john811c)\
**Post date:** [June 29, 2023, 4:17pm UTC](https://ask.gibbonedu.org/t/step-2-of-the-installation/8242/6 "2023-06-29T16:17:30Z")

</div>

It is common for mysql to use **localhost** as the database server on shared hosting so I think you may have to specify that instead of the real host name you have listed. Also you may have to create a database name and password for the database created before you can use it

---

<div class="post-metadata">

**Author:** ![Malsie](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@Malsie](https://ask.gibbonedu.org/u/Malsie)\
**Post date:** [June 29, 2023, 4:38pm UTC](https://ask.gibbonedu.org/t/step-2-of-the-installation/8242/7 "2023-06-29T16:38:23Z")

</div>

I have created a database name and also a password still getting the error

---

<div class="post-metadata">

**Author:** ![john811c](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/j/5f9b8f/32.png) [@john811c](https://ask.gibbonedu.org/u/john811c)\
**Post date:** [June 29, 2023, 5:04pm UTC](https://ask.gibbonedu.org/t/step-2-of-the-installation/8242/8 "2023-06-29T17:04:43Z")

</div>

Did you set all the permissions for the database user sometimes when a username is created permissions are not set and thus it won’t connect. Or did you create a user for the database, remember a lot of hosting accounts won’t let you use root as the user for databases as that is a reserved name for mysql to create databases and users. This is often done using database wizard in cPanel as a last step
