Skip to content

SQLSTATE[HY000] [1045] Access denied for user 'database_username'@'Bockstack.Bookstack' #5559

@DevJulian98

Description

@DevJulian98

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

i installed bookstack with portainer with a yaml file and always after startup this error came up
in the container i can also see that the db can not be connected but i have not found any solution in the internet for that

Image Image

Exact BookStack Version

latest

Log Content

Illuminate\Database\QueryException

SQLSTATE[HY000] [1045] Access denied for user 'database_username'@'Bockstack.Bookstack' (using password: YES) (Connection: mysql, SQL: select exists (select 1 from information_schema.tables where table_schema = 'bookstack' and table_name = 'migrations' and table_type in ('BASE TABLE', 'SYSTEM VERSIONED')) as exists)

at /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:825

821▕                     $this->getName(), $query, $this->prepareBindings($bindings), $e

822▕                 );

823▕             }

824▕ 

➜ 825▕ throw new QueryException(

826▕                 $this->getName(), $query, $this->prepareBindings($bindings), $e

827▕             );

828▕         }

829▕     }

  +38 vendor frames 

39 /app/www/artisan:35
Illuminate\Foundation\Console\Kernel::handle()

Hosting Environment

Portainer Community Edition 2.27.3 LTS on a Raspi 5 with Raspi OS light 64 bit Version

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