How to solve this Error: Database connection failed

Rajeev C 20 Reputation points
2024-10-23T06:54:44.92+00:00

User's image

Azure Database for MySQL
{count} votes

Answer accepted by question author
  1. Abiola Akinbade 30,360 Reputation points Volunteer Moderator
    2024-10-23T07:17:22.83+00:00

    Add debug lines to your php code to get further details of the error.

    You can also check your config.php to ensure that your db details are correctly specified. You will find these details on your database on how to connect with php

    https://learn.microsoft.com/en-us/sql/ssms/quickstarts/ssms-connect-query-azure-sql?view=sql-server-ver16

    https://learn.microsoft.com/en-us/azure-data-studio/quickstart-sql-database

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.