Skip to content
  • Home
  • Fussy Vegetarian
  • Email Newsletter
Copyright Being Manan 2026
Theme by ThemeinProgress
Proudly powered by WordPress
  • Home
  • Fussy Vegetarian
  • Email Newsletter
Being MananManan reviews tech and gadgets
  • You are here :
  • Home
  • Computing & Internet
  • Install MySQL & phpMyAdmin On Windows For IIS
Computing & Internet

Install MySQL & phpMyAdmin On Windows For IIS

July 16, 2009

If you’re like me and get the urge to mess around with your PC then this might interest you or if you’re seriously looking to setup an IIS Server along with MySQL & phpMyAdmin then again, this is for you. This is a quick how-to for setting up MySQL & phpMyAdmin on Windows if you’re planning to install WordPress or any such application dependent on these technologies. There are other options like Xampp but I’d like to talk about how one can set these components individually. Setting up an IIS Server is quite easy & so is MySQL & phpMyAdmin, so here’s how:

  • Setting up IIS (Windows 7):

To do this follow these steps:

  1. Start –> Control Panel
  2. Programs –> Uninstall a program
  3. Turn Windows features on or off (left sidebar)
  4. Check ‘Internet Information Services’ & ‘Internet Information Services Hostable Web Core’.
  5. OK. Sreenshot:

install iis7 on windows 7

Once the installation is done, you’ll have to start the server. To do this:

  1. Start
  2. Search for IIS –> Select IIS Manager
  3. Select your PC from the left sidebar & hit ‘Start’ on the right sidebar. Screenshot:

start iis server windows

  • Install MySQL:

Now that IIS is installed, we’ll set up MySQL, to do that:

  1. Download MySQL Essentials
  2. Run the setup
  3. Select the ‘Typical’ setup & keep hitting Next & Install.

Screenshots:

installing mysql on windows

mysql on windows

Once MySQL wizard completes it will ask you whether you want to register the server & if you want to configure the server. To save time & hassle, we’ll uncheck the registration option & will configure the server, screenshots:

installing mysql on windows

We’ll choose the Standard configuration & enter the required details. Configurations screenshots:

mysql windows setup

Security settings, I’d suggest keep something that you’ll remember & nothing to complicated. Set the MySQL service to auto run saving you time. Screenshots:

mysql wndows configuration

Last screen, press ‘Execute’ & once done, ‘Finish’. You’re done with MySQL installation & setup. :)

mysql windows installation complete

  • Installing phpMyAdmin:

We’ll be installing phpMyAdmin as it’s a GUI to managing the tables:

  1. Download the phpMyAdmin zip file
  2. Extract it to:
      C:\inetpub\wwwroot\phpmyadmin
  3. Now navigate to the same directory & rename the file config.sample.inc.php to config.inc.php
  4. Open the file in Notepad & find
      $cfg[‘blowfish_secret’] = ‘ ’;
  5. Within the ‘ ’ insert any word, eg: manan. The line should look like:
      $cfg[‘blowfish_secret’] = ‘manan’;
  6. Save the file. Note that the file name should be config.inc.php
  7. In your browser, go to:
      localhost/phpmyadmin
  8. And that’s it, login with the credentials you provided during the MySQL. If all’s done right & the php God’s are smiling you should see your login page, something like this:

phpmyadmin windows login

~Enjoy!

Wait for the follow up post that would explain my reasoning for going through all of this :)

You may also like

Transitioning to Unifi for WiFi: The Expensive Lessons Learned

2025 Subscriptions Review

Walkthrough of my Homelab

Firewalla: A home firewall that everyone can use

Desk Cable Management: Master Guide for a Functional Desk

One Dock to Power the Work from Home Setup

Related

Tags: iis, mysql, phpmyadmin, tutorial, utilities, Windows, wordpress

51 comments

  • Rajesh has written: July 26, 2009 at 7:33 am Reply

    After doing lots of practices to Install, PHP & MySQL on Windows XP. I am now on WampServer.

    Actually the problem is that PHP & MySQL have no patchup in XP.

    Isn’t?

  • manan has written: July 26, 2009 at 6:45 pm Reply

    I haven’t tired it on XP but there shouldn’t be any problem IMO.

  • Sean has written: August 14, 2009 at 5:28 am Reply

    Any idea why the MySQL service fails to start? I keep getting “Could not start the service MySQL” from the Instance Configuration Wizard. I have removed the service and the “instance”, uninstalled and reinstalled many times, and still cannot get the service to start.

    • T Shah1 has written: January 27, 2012 at 12:21 pm Reply

      Follow the steps below:
      1.stop the service and instance.
      2.uninstall mysql.
      3.remove the mysql folder from progamme files.
      4.Now here is the issue. if using xp. go to windows explorer, tolls>folder options>views>check show hidden files and folders.
      5. go to c: documents and settings > all users > application data> there is a folder called mysql. delete this folder even from recycle bin.
      6. install it again. it must work now.

      if using windows 7 or vista.
      in step 4 go to c: programme files and go to programme data and delte mysql folder.

      install it again.
      should be fine now. worked for me.

      Thanks.

  • manan has written: August 14, 2009 at 10:52 am Reply

    Hi Sean, I’ currently not on the machine I’ve set this up, but since you said its a service not starting issue try the following:

    Start -> Run -> services.msc & search for a MySQL service here, see if it is disabled or something. I’lll check this up on my other machine as well, if I can duplicate the issue & find a solution. :)

  • Sean has written: August 14, 2009 at 12:59 pm Reply

    Hey, I’ve removed the service multiple times using ‘sc’ from the command line. There are no MySQL, MySQL51, etc. services present. As it turns out, it had something to do with the my system really not liking InnoDB. Once I told it to configure a “transactionless” server, everything worked fine.

    Actually, I’m working on a much larger problem. I need some sort of a server setup for testing purposes on my Windows 7 desktop. I’ve tried the builtin IIS, and made large strides, but in the end encountered so many headaches, that I gave up. I think I’m gonna try one of the old devside.net server suites. I need something to experiment with Joomla!, which uses mysql and php. Permissions on IIS7.5 turned out to be hellishly complicated… maybe Apache will work better for me.

    Anyways, thanks for your response! :)

  • manan has written: August 14, 2009 at 1:06 pm Reply

    Hey Sean, interesting wouldn’t have found that honestly. If you’re trying to do something like that, I’d suggest you use a Windows Server OS. They’re comparatively more hassle free from what I’ve seen, though not done much on this end.

  • Sean has written: August 14, 2009 at 1:24 pm Reply

    Yeah, perhaps, but from what I’ve seen, Windows Server 2008 looks quite similar to IIS 7.5 embeded in Windows 7 Ultimate. It’s funny, I place more confidence in an Apache configuration running on top of Windows… and ironically, it seems to be working quite a bit better. It’s a lot easier setting all the permissions in conf files, than trying to use a combination of that stupid IIS_IUSRS account and the very confusing GUI associated with IIS.

  • Murat Bilga has written: September 26, 2009 at 2:43 am Reply

    Thanx a lot manan,
    it helped a lot!

  • Alicia has written: November 23, 2009 at 8:05 am Reply

    This was a HUGE help! One thing though: the Windows Installer version of PHP does not install the mcrypt extension and you can see from the screen shots that phpMyAdmin complains about that. I don’t know if it’s crucial or not to have it, but I hate errors so I found out how to fix it. Simply go to Control Panel, Programs, right-click on PHP 5.2.11 and select change. Then add the mcrypt extension. Then add these lines to the php.ini file:

    [PHP_MCRYPT]
    extension=php_mcrypt.dll

    • manan has written: November 24, 2009 at 10:54 am Reply

      thanks for the heads up! Appreciate it :)

  • Anant Shrivastava has written: December 9, 2009 at 9:24 pm Reply

    The best method is to go for WAMP, a no brainer for configuration and hence a developer can focus on web development instead of figuring out ways to get things up and running.

    • manan has written: December 10, 2009 at 2:49 am Reply

      True there are alternatives. I had to use this for WPI and it helps a lot. ;)

  • Pradep has written: March 9, 2010 at 10:04 am Reply

    Manan,
    I followed all the steps you have posted. I could get as far as the login page of phpmyadmin .I am unable to login after that . I get the error “#2002 – The server is not responding (or the local MySQL server’s socket is not correctly configured)” . How to get past this ? Thanks in advance.

    • Roberto has written: April 28, 2011 at 12:54 pm Reply

      I have the same error. I had install XAMPP in winXP and the apache service works fine but when i try to run phpmyadmin it get me that error.

  • mai has written: May 7, 2010 at 2:37 am Reply

    Very helpful, thank you!

    • manan has written: May 7, 2010 at 8:29 am Reply

      you’re welcome :)

  • Enrico has written: May 18, 2010 at 2:29 am Reply

    Which is my curruent root password?
    I have a connection error n.1405.
    I try with all my password but nothing. What can i do?
    thank’s

    • Johnnystraws has written: November 2, 2010 at 8:13 am Reply

      You only use the current root password if you already have MySQL database installed, If you don’t don’t type anything in there.

  • Tom has written: May 18, 2010 at 8:28 am Reply

    Hello everyone,

    I have followed the instructions thoroughly, yet I am receiving “Error 404.0” cannot find. I renamed the file as stated in the phpmyadmin folder. The code was edited properly and I even used the example word ‘manan’. Please someone help me I am losing my mind over this.
    Thanks in advance.

  • Edward has written: May 30, 2010 at 1:00 pm Reply

    Hey Manan, thank you so much for your post! I wouldn’t know where to get started without following your instructions. Thank you ^^

  • Brad has written: October 20, 2010 at 11:54 pm Reply

    I did what was posted but when I go to localhost/phpmyadmin on my internet browser, all i see is a directory and not a login page. Am I doing something wrong? please help!

  • Musmanjaved has written: November 11, 2010 at 9:00 pm Reply

    buddys …… this is what i find so far…. all you need is to go to this file… root:/xampp/mysql/bin/my.conf ..

    root = your root directory where xampp is intalled…

    and search for words like socket=’Mysql’

    That ‘Mysql’ is an actuall problem. put this there (root:/xampp/mysql/mysql.sock)
    like soket=’root:/xampp/mysql/mysql.sock’

    restart .. i hope it should work :D…

    i guess i will work on all OS too, but mine case is windows 7

  • Rhonda F has written: December 14, 2010 at 1:52 pm Reply

    Thank so much for this tutorial. It was clear, concise and extremely helpful to me.
    Rhonda Fairman

  • Pepero has written: December 25, 2010 at 12:17 pm Reply

    After installing phpmyadmin from the link I found in this page, could login into phpmyadmin with my old password without problem before I set the blowfish password and changed the file name as explained in the tutorial above… but once I have set up a new blowfish password and changed the name of the file as explained, I can’t login into mysql server, phpmyadmin and I cannot change the mysql password from the command line… I have tried a lot of manners I have found but anything helps.

  • Webpanther has written: March 20, 2011 at 6:41 am Reply

    ok this post it been a weile ??
    I’m refering to Beingmanan last writing “Wait for the follow up post that would explain my reasoning for going through all of this ”
    Ok where is the follow up post ??Where is the link??

    • Manan has written: March 20, 2011 at 9:54 pm Reply

      https://beingmanan.com/wp/2009/07/install-wordpress-on-pc-with-web-platform-installer/

  • Tim has written: May 5, 2011 at 2:34 am Reply

    Thanks for the indepth tutorial but, upon entering the domain name “localhost/phpmyadmin”, a 404 error saying”The resource you are looking for has been removed, had its name changed, or is temporarily unavailable” loads.

    • Jerry Evans has written: May 12, 2011 at 1:27 pm Reply

      @2521b8f6b6683ee780e5dbf9114fb040:disqus try using the IP address using this format: http://11.222.333.444/myphpadmin/index.php

  • Jerry Evans has written: May 12, 2011 at 1:28 pm Reply

    Good tutorial, pulled me out of a world of pain with toySQL. Thanks,

  • Aksh has written: June 30, 2011 at 3:10 pm Reply

    its fantastic guide…but i have one query..

    Could you please post same type of tutorial for  how to setup remote mysql db server in windows …….i mean to say web server is different and database server is different………………
    if you post this artical here please let me know at [email protected]..i will be highly grateful to you……………………

  • Jaryalpankaj91 has written: July 16, 2011 at 8:28 am Reply

    thanx it helped

  • Muneer zaki has written: August 29, 2011 at 10:24 am Reply

    I am install all my SQL and phpmyadmin follow the steps but i have this “#1045 Cannot log in to the MySQL server” type of error

  • Help All has written: October 24, 2011 at 3:54 am Reply

    Thank you,,,,,,,,,,,,

  • Sreekanth has written: October 29, 2011 at 10:23 am Reply

    dear sir,  I am trying the open the phpmyadmin  getting the bellow error.

    http://licalhost working fine

    http://localhost/phpmyadmin/

    it shows parent
                 directory credits

    i try to open the http://localhost/phpmyadmin/index.php

    we are getting the bellow error please help me sir please,
     <html xmlns="http://www.w3.org/1999/xhtml&quot; xml:lang="” lang=”” dir=””>phpMyAdmin – <meta http-equiv="Content-Type" content="text/html; charset=” />// <![CDATA[ // definitions used in common.js var common_query = '’; var opendb_url = ”; var safari_browser = ; var querywindow_height = ; var querywindow_width = ; var collation_connection = ”; var lang = ”; var server = ”; var table = ”; var db = ”; var token = ”; var text_dir = ”; var pma_absolute_uri = ”; var pma_text_default_tab = ”; var pma_text_left_default_tab = ”; // for content and navigation frames var frame_content = 0; var frame_navigation = 0; function getFrames() { frame_content = window.frames[1]; frame_navigation = window.frames[0]; frame_content = window.frames[0]; frame_navigation = window.frames[1]; } var onloadCnt = 0; var onLoadHandler = window.onload; window.onload = function() { if (onloadCnt == 0) { if (typeof(onLoadHandler) == “function”) { onLoadHandler(); } if (typeof(getFrames) != ‘undefined’ && typeof(getFrames) == ‘function’) { getFrames(); } onloadCnt++; } };// ]]><frameset cols="” rows=”*” id=”mainFrameset”> <frame frameborder="0" id="frame_navigation" src="navigation.php” name=”frame_navigation” /> <frame frameborder="0" id="frame_content" src="” name=”frame_content” /> <frame frameborder="0" id="frame_navigation" src="navigation.php” name=”frame_navigation” /> <?php echo __('phpMyAdmin is more friendly with a frames-capable browser.’); ?>

  • Arkar Oo has written: November 9, 2011 at 7:28 am Reply

    Thank you very much for guiding me to success! This is a very good tutorial.

  • ArkarOo has written: November 9, 2011 at 7:30 am Reply

    thanks

  • James Farrell has written: December 26, 2011 at 5:45 pm Reply

    Thanks, finding it interesting to work with php on iis, rather than Wamp stack or similar

  • Jasmine has written: February 29, 2012 at 2:36 pm Reply

    thank you for this. Very helpful!

  • Tu?ba Buldu has written: April 7, 2012 at 7:53 am Reply

    Thanks a lot :) 

  • Mark Iliff has written: March 20, 2013 at 11:19 am Reply

    Thanks so much for this clear explanation. There are loads of sites that offer unstructured waffle. This page is beautifully written and structured. Thanks again

  • Iveeeee has written: July 11, 2014 at 4:11 am Reply

    Hi, :)

    I would like to know how will I install phpmyadmin if i have another website registered to iis? I got an existing website in my iis and when I tried to install it with phpmyadmin (c:/inetpub/wwwroot/php; port:1880) — cant connect. :( it says “Cannot verify access to path C:inetpubwwwrootphp” and tried to go to the address bar of my browser, still having an error. :/ Can anyone help me with this? Thank you very much!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Me

Hi, I’m Manan and here I write about gadgets and technology. Find me on Twitter or Mastodon and my stream on Twitch. Get updates over email. Or sign up for the Newsletter.

Ad

Ad

Apps by Manan

Kryton Labs Logo Kryton Labs

Copyright Being Manan 2026 | Privacy Policy | Terms of Service | Theme by ThemeinProgress