Skip to content

"Access denied for user" during panel installation using database user password with special characters #3287

Closed
@Boy132

Description

Background (please complete the following information):

  • Panel or Wings: Panel
  • Version of Panel/Wings: 1.3.2
  • Server's OS: Debian 9

Describe the bug & To Reproduce
Assuming you want to install the panel and your database user password contains special characters like %, & or #. (And assuming that the entered credentials during php artisan p:environment:database were correct.)
When running php artisan migrate --seed --force you'll get this error message:
image

You can resolve this error by manually editing the .env file and wrap " around the password like this: DB_PASSWORD="PASSWORD".

Expected behavior
The password is automatically wrapped with ", e.g.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions