Ghost mySQL Error upon initial installation

Ghost was able to start, but errored during boot with: ER_ACCESS_DENIED_ERROR: Access denied for user ‘ghost’@‘localhost’ (using password: YES)

Help: Unknown database error Suggestion: journalctl -u ghost_mysite-com -n 50

Debug Information: OS: Ubuntu, v20.04.2 LTS Node Version: v14.16.1 Ghost Version: 4.5.0 Ghost-CLI Version: 1.17.1 Environment: production Command: ‘ghost install --auto --db=mysql --dbhost=localhost --dbname=ghost_production --dbuser=ghost --dbpass=2960b401ab89b5b4e10a06d456d0235a058254f9f06f53f6 --dir=/var/www/ghost --start’

Stuck here, any help would be appreciated.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @paolotrulli,

It seems like there is either a typo somewhere in the connection to your database, and most precicly either in your dbname, dbuser or dbpass.

If you try to login into your database like so

mysql -u ghost  -p ghost_production

From your Droplet, are you able to?

Another possibility can be the ghost database user to not have enough permissions for your ghost_production database.

Regards, KFSys