Hello/Hi/Greetings,
(I turned onn my system today and got this error can you please help?
Warning: mysqli::__construct(): (HY000/2002): Connection refused in /config/www/gallery/include/dblayer/functions_mysqli.inc.php on line 52
Warning: my_error(): Couldn't fetch mysqli in /config/www/gallery/include/dblayer/functions_mysqli.inc.php on line 856
Warning: my_error(): Couldn't fetch mysqli in /config/www/gallery/include/dblayer/functions_mysqli.inc.php on line 856
Piwigo encountered a non recoverable error
[mysql error ]
Can't connect to server
#1 my_error /config/www/gallery/include/common.inc.php(113)
#2 include_once /config/www/gallery/index.php(11)
)
(Copy here your environment details, found on your Piwigo page [Administration > Tools > Maintenance])
Piwigo URL: http://
Offline
Looks like it can’t connect to the database.
Offline
Make sure the db_host entry in local/config/database.inc.php points to the correct server (hostname or IP).
Also, searching the forum for (HY000/2002): Connection refused may reveal relevant topics.
Offline
I have Piwigo installed on docket/portainer.
How would I access the file to edit the file?
Offline
@naser, did you not mount a volume to your container to store config information? That can be edited outside the container, but chances are this is going to keep happening unless you are familiar with your docker network configuration. If you didn't specify a mounted volume it should still create one which can be accessed from outside, but easiest to access from inside. You can use a docker commend to ender the container from your shell, or in Portainer go to the container and view the ">_ Console"
Offline
The problem I'm facing is the same as yours. Restarting the mysql library can fix it, but there's a chance this error might pop up again every few hours. Have you figured out a solution for this issue yet? And do you know why it keeps happening?
Offline
Maybe there are too many pictures, the master did not update, and finally updated the theme to fix it
Offline