[PR #3022] [CLOSED] Small fix DB Login error with special characters #6113

Closed
opened 2026-02-05 10:24:50 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/3022
Author: @Erdack54
Created: 10/28/2021
Status: Closed

Base: masterHead: master


📝 Commits (2)

  • 889015b Fix db login error with special characters
  • ac1adb6 Same fix as: .env.example

📊 Changes

2 files changed (+10 additions, -6 deletions)

View changed files

📝 .env.example (+5 -3)
📝 .env.example.complete (+5 -3)

📄 Description

Hi, small fix for DB Login error (SQLSTATE[HY000] [1045] Access denied for user 'database_username'@'database_database' ...) with special characters on credentials, especialy on DB_PASSWORD

Working idk if it's perfect but the idea is here, i and many peoples apparently have encounter this small problem, especialy with Docker image like linuxserver/bookstack work on first start no problem everything working very well but after a restart MySQL Access denied for use.. with a nice HTTP Error 500 on browser 😕

First pull request hope it's not too bad and will help :D


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BookStackApp/BookStack/pull/3022 **Author:** [@Erdack54](https://github.com/Erdack54) **Created:** 10/28/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`889015b`](https://github.com/BookStackApp/BookStack/commit/889015b966be7c993b317936db18b1849a4ef8c5) Fix db login error with special characters - [`ac1adb6`](https://github.com/BookStackApp/BookStack/commit/ac1adb67be7dfb064e93d8da1fa1ff52c2b73900) Same fix as: .env.example ### 📊 Changes **2 files changed** (+10 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+5 -3) 📝 `.env.example.complete` (+5 -3) </details> ### 📄 Description Hi, small fix for DB Login error (SQLSTATE[HY000] [1045] Access denied for user 'database_username'@'database_database' ...) with special characters on credentials, especialy on DB_PASSWORD Working idk if it's perfect but the idea is here, i and many peoples apparently have encounter this small problem, especialy with Docker image like linuxserver/bookstack work on first start no problem everything working very well but after a restart MySQL Access denied for use.. with a nice HTTP Error 500 on browser 😕 First pull request hope it's not too bad and will help :D --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 10:24:50 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#6113