Quantcast
Viewing latest article 12
Browse Latest Browse All 4908

General programming discussion • DBI connect fails when db is working

I am running bullseye on a Raspberry Pi 4,.
From the RPI4 I can browse into a separate Raspberry 3B using stretch. The url is "RPI3_ip_address/dbfile" The RPI3 dbfile uses perl and DBI::mysql. It works fine.
I recently installed apache2 onto the RPI4 and am trying to redirect slightly differently. I have an index.html file which itself redirects to the RPI3 dbfile with the included url="RPI3_nfs_address/dbfile". The RPI4 browser url is now "DPI4_ip_address". This works well when there is no db to contend with. But when there is it fails. The error message is that DBI-connect fails - at the point where DBI->connect( "db", "user", "pass"). But the RPI4 mysql db is fine and opens with the same user and password. I might also mention that the mysql dbs on both machines are identical.

What I don't understand is why that particular DBI->connect statement works on my RPI3 pc but not the RPI4 pc. Any help? Thx.

Statistics: Posted by akaodin — Fri Apr 11, 2025 9:33 pm



Viewing latest article 12
Browse Latest Browse All 4908

Trending Articles