How to install phpMyAdmin in Windows server?

If you are new to MySQL and looking for an easy way to manage your databases, phpMyAdmin is the best tool. This guide will show you how to install phpMyAdmin on Windows Server step by step, even if you are a beginner.

phpMyAdmin is a free web-based software written in PHP. It allows you to handle the administration of MySQL or MariaDB databases directly from your browser.

Step 1: Install PHP on Windows Server

To install phpMyAdmin, you need PHP first.

  • Download and install PHP 7.1 (or newer) using Microsoft Web Platform Installer.
  • Make sure PHP is properly configured with your web server (IIS or Apache).
    1-install-php

Step 2: Download phpMyAdmin

  • Go to the official phpMyAdmin website: phpMyAdmin Downloads
  • Download the latest stable version (for example, phpMyAdmin 5.0.4).
  • This version is compatible with PHP 7.1+ and MySQL 5.5+.
    2-download

Step 3: Configure phpMyAdmin

  1. Extract the downloaded phpMyAdmin package.
  2. Inside the folder, rename "config.sample.inc.php" to "config.inc.php"
    3.1-rename
  3. Move the phpMyAdmin folder to your web root (for example, C:\inetpub\wwwroot\phpMyAdmin).
  4. Create a new IIS or Apache website manually, pointing it to the phpMyAdmin folder.
    3.2-create-a-website

Step 4: Open Port in Windows Firewall

To access phpMyAdmin from a browser, you need to open a port.

  • Example: Open port 8085 in Windows Firewall.
  • Run the following test in your browser: http://:8085/
    3.3-open-port
    If everything is configured correctly, you will see the phpMyAdmin login page.

Step 5: Test phpMyAdmin Login

  • Enter your MySQL root username and password
  • Once logged in, you can start creating and managing databases.
    3.4-test
    3.4.2-test
Outline