First thing first, when creating this thread there is no Bookstack option available in the list of topics/containers. I had no choice to select booksonic. If its possible to move this thread, please feel free.
When creating the bookstack container using either cli or compose I am always seeing errors like the following:
Doctrine\DBAL\Driver\PDOException::(“SQLSTATE[HY000] [1045] Access denied for user ‘bookstack_admin’@‘192.168.0.8’ (using password: YES)”)
That is the host machine IP address. I tried configuring an .env file but it doesnt make any difference. The settings I configure for the database host, user, pass etc, as per the instructions on the lsio documentation for bookstack do not work.
you mentioned you’re using mysql as opposed to our mariadb container; did you verify your mysql instance is allowing remote connections? By default this isn’t allowed. it does make it a bit more challenging since we know the issue is on the database side but you’re not using our database, presumably because your mysql instance is on another server it looks like.
Have you tried just connecting? mysql -u bookstack_admin -p -h 192.168.0.105 input your password and show databases; (you should see bookstack)
couple things you can check… in your my.cnf or mysqld.cnf or whatever config file you have (it can vary)
look for bind-address, by default it’s bind-address 127.0.0.1 meaning connections are only allowed from itself (ie, useless) so you can comment this line out or change to bind-address 0.0.0.0 and then restart mysql service
verify your firewall, iptables, ufw, nfw, firewalld isn’t blocking port 3306
sometimes there is a skip-networking line in the cnf file, comment that out and then restart mysql service