r/BookStack • • Feb 16 '26

New install getting sql error

Hi, new to BookStack

Just installed, artisan migrate worked (So database access is correct) tables created.

When I go to webpage it switches to SITE/login

from storage/logs/laravel.log I get SQLSTATE[HY000] [1045] Access denied for user

but the problem seems to be with the SQL

SQL: select * from users where system_name = public limit 1

Now when I run the command in mysql as the user, the ERROR is the un quoted word public

if I quote it the command runs fine.

MySQL version 8.0.45-0ubuntu0.24.04.1

git clone https://github.com/BookStackApp/BookStack.git --branch release --single-branch bookstack

Any sugestions?

1 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/ssddanbrown Feb 17 '26

Is this a manual install? If so, what apache config do you have set? If not, how did you install?

Which is trying to find a login script off the base directory, which there is none, hence the 404

The web-server configuration should be routing everything through the public/index.php script, you won't find a script for each URL path.

1

u/russellii Feb 17 '26

Yes manual install, following the steps on the install page.

But finally just gave up. Tried the docker version, and got that to run, with basically the same variables.