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
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
848 questions
{count} votes

Accepted answer
  1. akinbade abiola 18,305 Reputation points
    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 Answers by the question author, which helps users to know the answer solved the author's problem.