connect phpmyadmin to web app + database

Mamadou Oury BARRY 50 Reputation points
2023-04-03T20:50:11.79+00:00

Hello, please how could I connect phpmyadmin in the webapp?

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
824 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
925 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Syed Shiraz Shahid 280 Reputation points
    2023-04-03T21:46:25.71+00:00

    To connect phpMyAdmin to your Azure Web App and MySQL database, follow these steps:

    1. Deploy phpMyAdmin to your Azure Web App by creating a new Web App or updating an existing one. You can find instructions on how to deploy a Web App in the Azure Portal documentation.
    2. Configure your Azure MySQL database for remote access by adding your Web App's IP address to the server's firewall rules. You can find instructions on how to do this in the Azure Portal documentation.
    3. Open phpMyAdmin in your web browser by navigating to your Web App's URL followed by "/phpmyadmin". For example, if your Web App's URL is "mywebapp.azurewebsites.net", you would navigate to "mywebapp.azurewebsites.net/phpmyadmin".
    4. Log in to phpMyAdmin using the credentials for your MySQL database. You can find these credentials in the Azure Portal under the "Connection strings" section of your MySQL database resource.
    5. Once you are logged in to phpMyAdmin, you should be able to view and manage your MySQL database.

  2. GeethaThatipatri-MSFT 29,387 Reputation points Microsoft Employee
    2023-04-03T22:07:20.96+00:00

    @Mamadou Oury BARRY Welcome to the Microsoft Q&A forum, Thanks for posting your question.

    If I understand correctly you want to know how to connect Azyre Mysql Database using PHP

    You can find a quickstart guide on how to connect to Azure Database for MySQL using PHP

    https://learn.microsoft.com/en-us/azure/mysql/single-server/connect-php Please let me know if you find any issues or need any additional information.

    Regards Geetha


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.