8000 Better mysql docs/error handling when no password is specified during mysql setup · Issue #471 · TryGhost/Ghost-CLI · GitHub
[go: up one dir, main page]

Skip to content
Better mysql docs/error handling when no password is specified during mysql setup #471
@acburdine

Description

@acburdine

Currently, if you follow the install instructions in the documentation, but don't specify a root password when you're setting up mysql, Ghost-CLI will error when you try to run ghost install, because it can't connect to mysql.

This is due to a bug in the underlying mysql adapter: mysqljs/mysql#1507, which exists because specifying no password during mysql setup changes the auth mode of the r 67AC oot account, which the mysql adapter can't work with.

There's not anything we can do to fix this bug unfortunately, so what we can do to mitigate this issue:

  • update documentation to add troubleshooting section, as well as section to tell people to specify a mysql root password on setup
    • troubleshooting section needs to include the sql queries in this comment so that people have a way of getting their server into a state working enough that the CLI can use it.
  • add an ER_NOT_SUPPORTED_AUTH_MODE check to catch this and output a helpful error message.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0