Thank you for your great support!!
Your idea to check the server logs helped solve the issue.
The cause of the problem was a security setting on the server that restricted or blocked database connections within WordPress. That was the root of the issue, and it has now been resolved.
Thanks for your help. Without you, I wouldn’t have been able to find the problem.