Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't get through mysql setting while installing Ghost via CLI #407
I'm trying to migrate from 0.11.11 to 1.0.0+, and I followed the official guide here. To complete this, I started a brand new droplet on DigitalOcean.
The problem is that I just can't pass the systemd setting step. Here's detailed log:
? Enter your blog URL: http://shi****yu.com/
InternalServerError: The server has encountered an error.
Error: connect ECONNREFUSED 127.0.0.1:3306
Additional log info available in: /home/recon/.ghost/logs/ghost-cli-debug-2017-07-31T09_21_30_330Z.log
Please refer to https://docs.ghost.org/docs/installing-ghost-via-the-cli#troubleshooting for troubleshooting.
Please help me out, thanks anyway!
Hi @vistaing I was pointing out that the X (failed task) was next to the mysql task, and not the systemd task (that has a tick next to it, so succeeded).
Knowing that an ECONNRESET with port 3306 means MySQL is definitely something that Ghost CLI could handle and tell you explicitly - we can look at adding some clearer error messages here.
It seems the documentation for setting up mysql in the migration guide is not complete. Sorry about that. For now I recommend following this guide: https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04. CC @sebgie can you please take a second look at the setup docs when you have a minute? According to digital ocean the security task is needed & also the service needs to be explicitly started.
@ErisDS I solved it (although I didn't fully understand the mechanics)!
It seems that users should be informed that running
Thank you for your generous guide on this simple issue !!
@vistaing to get a better understanding of how this occured could you please describe what steps you took to get to that stage?
@sebgie Glad to share more detail with you:
Thanks for reading! Maybe it's hard for a veteran to commit the same move, but as a newbie in development, I really didn't know that I should manually install mysql-client first.
So, I have tried this out on a new droplet on DO. I can reproduce the output mentioned above if mysql-server installation fails. This could happen if the package list in apt is not updated (
The output after that looks like this:
I have added a new section about updating the package list and upgrading installed packages to the documentation.