Hi there,
I am trying to do a brand new install from scratch via the Bare Linux method, as even though I have tried using DigitalOcean’s Marketplace’s Ghost v5.41.0 Installer, the same error of being unable to connect to the database still persists.
Thus, I thought by utilizing the server method, I might have more control over what I can change to help resolve the solution. However, the same issue still persisted even though I destroyed and restarted the whole process about 20 times.
Hope someone may have some better headway on this matter to give some advice moving forward. Thank you.
Server Configs:
- ubuntu v22.04 (LTS) x64
- nginx v1.18.0-6ubuntu14.3
- mysql-server v8.0.32-0ubuntu0.22.04.2
- nodejs v18.15.0-deb-1nodesource1
- npm v9.6.3
Ghost Configs:
- ghost-cli v1.24.0
- ghost v5.41.0
Error Messages:
Starting Ghost
One or more errors occurred.
- GhostError
Message: Ghost was able to start, but errored during boot with: connect ECONNREFUSED ::1:3306
Help: Unknown database error
Suggestion: journalctl -u ghost_mywebsite -n 50
Debug Information:
OS: Ubuntu, v22.04.2 LTS
Node Version: v18.15.0
Ghost Version: 5.41.0
Ghost-CLI Version: 1.24.0
Environment: production
Command: ‘ghost install’
MySQL DB User Listing:
±-----------------±----------±----------------------+
| User | Host | plugin |
±-----------------±----------±----------------------+
| debian-sys-maint | localhost | caching_sha2_password |
| my-ghost | localhost | auth_socket |
| mysql.infoschema | localhost | caching_sha2_password |
| mysql.session | localhost | caching_sha2_password |
| mysql.sys | localhost | caching_sha2_password |
| root | localhost | auth_socket |
±-----------------±----------±----------------------+
6 rows in set (0.00 sec)
In addition, I have also tried to add an additional user my-ghost
to handle the db-interactions but it just seems like Ghost
cannot access mysql
.