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 *all-languages.zip). 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:
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.
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.
Return to the config window. To configure the connection settings click on the “New Server” button.
Enter the verbose name of the SQL server, and then the server hostname. If necessary, you can specify other settings.
Save the settings and then the server will redirect us to the previous page. Choose:
- the default language – English
- the default server – 127.0.0.1
- end of the line – Windows (\ r \ n)
Click Save, and then download. The received file (config.inc.php) 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.
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.
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.
Finally, you have to uncomment / add lines in config.inc.php:
$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.