I checked my config file and the host was set to localhost which was working when we first setup zenphoto. I checked the mysql config and the bind address is set to 127.0.0.1
Also in the mysql log I see that I get these messages:
2023-07-05T14:54:56.717079Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-07-05T14:54:57.077415Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2023-07-05T14:54:57.210016Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /tmp/mysqlx.sock
2023-07-05T14:54:57.293594Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2023-07-05T14:54:57.293787Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2023-07-05T14:54:57.318300Z 0 [System] [MY-010931] [Server] /opt/bitnami/mysql/bin/mysqld: ready for connections. Version: '8.0.23' socket: '/opt/bitnami/mysql/tmp/mysql.sock' port: 3306 Source distribution.
The bind address has '::' in it. Is that accepting any IPV4 addresses?