r/BookStack • u/russellii • 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?
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?
The web-server configuration should be routing everything through the
public/index.phpscript, you won't find a script for each URL path.