# Database Error when starting ghost\_ Error ID : 500, Code: EAI\_AGAIN

**URL:** <https://forum.ghost.org/t/database-error-when-starting-ghost-error-id-500-code-eai-again/30718>\
**Category:** Self-hosting\
**Created:** [June 10, 2022, 1:33pm UTC](https://forum.ghost.org/t/database-error-when-starting-ghost-error-id-500-code-eai-again/30718 "2022-06-10T13:33:38Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [June 11, 2022, 8:50am UTC](https://forum.ghost.org/t/database-error-when-starting-ghost-error-id-500-code-eai-again/30718/7 "2022-06-11T08:50:04Z")

</div>

> [@SasikaA073](#):
>
> I was setting up the ghost through a [Youtube tutorial](https://www.youtube.com/watch?v=iG0-Z1Ni954&list=PLutaCl3kOXYKI6eSkx2zan28JGUQgUENC), I didn’t get a prompt to change the password for the root user using this command.

It’s best to start with the official guide. So, read this through first to be sure you understand. Also, note that Ubuntu 22.04 isn’t supported, even though it may work.

> **[How to install & setup Ghost on Ubuntu 20.04 or 22.04](https://ghost.org/docs/install/ubuntu/)**
>
> A full production install guide for how to install the Ghost professional publishing platform on a production server running Ubuntu 20.04 or 22.04.

To attempt to recover your setup, follow this thread from this post. It will show you how to setup MySQL, and restart the installation process. You’ll need to substitute some parts with your site details.

> [@How to install Ghost CMS on my VPS](https://forum.ghost.org/t/how-to-install-ghost-cms-on-my-vps/30621/15):
>
> Okay, next steps are to create a database and database user for Ghost. Type sudo mysql and you’ll see a different prompt. This is because you are using MySQL and have left the BASH command-line. You’ll need to replace \<password\> with your password; create a new one for this. create database boringdigital\_com; create user 'user\_boringdigital\_com'@'localhost' identified by '\<password\>'; grant all privileges on boringdigital\_com.\* to 'user\_boringdigital\_com'@'localhost'; flush privileges; quit; P…

---

_[View the full topic](https://forum.ghost.org/t/database-error-when-starting-ghost-error-id-500-code-eai-again/30718)._
