Docker API + Mysql Driver

21 views
Skip to first unread message

Cabrillo

unread,
Feb 26, 2024, 4:58:14 AM2/26/24
to bacularis
Hi Marcin,
   It's my first time trying to use docker to implement bacularis, but I'm having problems with the api when I try to connect to my catalog in mysql I'm getting this error , php7.4-mysql is installed on pysical machine, Should I install it on the docker?

Problem with connection to database. TDbConnection failed to establish DB connection: could not find driver

Marcin Haba

unread,
Feb 26, 2024, 7:17:22 AM2/26/24
to Cabrillo, bacularis
Hi Cabrillo,

Yes, you are fully correct. In the Bacularis Docker images we have in
PHP support only for PostgreSQL so if you install the PHP mysql
package and restart the PHP-FPM service it will work with the external
MySQL databases too.

Now, after reading your mail, I think it is a good idea to add the
MySQL support by default to the container images to have both
PostgreSQL and MySQL PHP packages installed. I will add it from the
next Bacularis version. Thanks for this idea.

Best regards,
Marcin Haba (gani)
> --
> You received this message because you are subscribed to the Google Groups "bacularis" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bacularis+...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/bacularis/36a37a89-36ac-4ad4-9ec1-6b67b546e69cn%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus

Marcin Haba

unread,
Mar 1, 2024, 11:17:15 AM3/1/24
to Cabrillo, bacularis
Hi Cabrillo,

I am pleased to let you know that we added support for the MySQL
database driver to the Bacularis Docker container repository:

https://github.com/bacularis/bacularis-docker/commit/6afcc1dcaa5e4cd40e333744e75fadb4419ae7d5

New version is coming soon. Container images with this change will be
in version 2.6.0.

Thanks.

Best regards,
Marcin Haba (gani)

Reply all
Reply to author
Forward
0 new messages