phpmyadmin windows

How to Install and Configure phpMyAdmin on IIS in Windows 8/Server 2012

PHPMyAdmin is a web-based open source tool written in PHP designed to help manage MySQL database through the Web browser. Because of this PhpMyAdmin facilitates the management and maintenance of the MySQL database. PhpMyAdmin provides an easy way to use graphic interface to write and execute queries, manage users and databases, to export and import data, etc. It should be noted that user does not need to know SQL commands and use them directly. Most web hosting providers use phpMyAdmin to access their clients to MySQL databases.

In this article, we will show you how to install and configure phpMyAdmin on IIS Web Server on Windows 8 / Windows Server 2012. It assumed that you have already configured IIS with PHP support and run mySQL.

First of all you have to download the latest version of phpMyAdmin. You can do this from the link below:

You should download a file with all languages (the file name ends with *all-languages.7z or * File size is about 5 MB.

Extract the files from the archive to phpmyadmin folder (C:\inetpub\wwwroot\phpmyadmin).

In general, we have completed the installation of phpMyAdmin. Now we should open a browser and make sure that we did installation correct. Visit http://localhost/phpmyadmin/ and you will see a window like this:

READ ALSO  How to Migrate from Windows to Linux Mint

phpmyadmin welcome

Now we have to configure phpMyAdmin. Before you connect to the SQL server, you should create a configuration file. This file can be created manually (simply use a text editor), but we will use another method (by using GUI). Visit http://localhost/phpmyadmin/setup/ in your browser.

During your first session you will see an error message.

phpmyadmin configure

To solve this problem you should create folder (C:\inetpub\wwwroot\phpmyadmin\config). After that give full rights for IIS_IUSRS group and IUSR user.

phpmyadmin config

Return to the config window. To configure the connection settings click on the “New Server” button.

phpmyadmin new server

Enter the verbose name of the SQL server, and then the server hostname. If necessary, you can specify other settings.

phpmyadmin basic settings

Save the settings and then the server will redirect us to the previous page. Choose:

  • the default language – English
  • the default server –
  • end of the line – Windows (\ r \ n)

phpmyadmin config file

Click Save, and then download. The received file ( you should save to the root directory (C:\inetpub\wwwroot\phpmyadmin).

Open the authorization window (http://localhost/phpmyadmin/) and login under root account. If you see a starting phpMyAdmin window, you can delete config folder.

For the correct work phpMyAdmin requires a database with the information. The script for creating database is already installed. On the main page click on the Import tab and then click on the Browse button. Select the C:\inetpub\wwwroot\phpMyAdmin\examples\create_tables.sql file and click Go.

READ ALSO  How to set CPU Usage limit for Application Pool on IIS 8

If you did it correct, you should see a new database in the left section.

Also, for a proper work phpMyAdmin requires a dedicated MySQL account.

phpmyadmin new user

We recommend you to create account like this:

  • User name: pma
  • Host: localhost
  • Password: sTr0ngPmapa $$

After that you should grant all database privileges to our user.

phpmyadmin privileges

Finally, you have to uncomment / add lines in
$cfg[‘Servers’][$i][‘controluser’] = ‘pma’;
$cfg[‘Servers’][$i][‘controlpass’] = ‘sTr0ngPmapa$$’;

And that’s it. We have completed the installation of phpMyAdmin. Now you can proceed with the databases management. If you encounter any issues or have any questions you may request that in the comment section below.

You may also like:

Active Directory auditing: No simple road to succe... Auditing Active Directory almost always finds place at the top of the administrator’s to-do list. There are a number of pressing needs that make audit...
Boot Straight to the Desktop in Windows 8.1 Boot Straight to the Desktop With the release of Windows 8.1 you now have the option available to you to boot straight to the desktop instead of Metr...
Windows 10 Start Menu Tips Even since the days of Windows 95, people have used the Start Menu to get around their system, finding and using applications. Microsoft’s attempt to ...
Configure Legal Notices on Domain Computers using ... In this article, we are going to show how to configure Legal Notices on domain computer by using Group Policy. So let’s get started. We have our...
How to Use Your Google Calendar in the Windows 10 ... Though not entirely novel, the Calendar app has been heavily modified with the release of Windows 10, so much so that it appears as one of the operati...