Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Installing phpMyAdmin on Windows

From: Installing Apache, MySQL, and PHP

Video: Installing phpMyAdmin on Windows

phpMyAdmin is a very popular free web application that can be used to manage your MySQL databases. You can download the most recent version of phpMyAdmin from this web site, www.phpmyadmin.net. But I've included a copy of phpMyAdmin in the exercise files that come with this course, and I'll show you how to install that version. I'll go to the Free Exercise Files folder and double-click into the phpmyadmin folder.

Installing phpMyAdmin on Windows

phpMyAdmin is a very popular free web application that can be used to manage your MySQL databases. You can download the most recent version of phpMyAdmin from this web site, www.phpmyadmin.net. But I've included a copy of phpMyAdmin in the exercise files that come with this course, and I'll show you how to install that version. I'll go to the Free Exercise Files folder and double-click into the phpmyadmin folder.

You'll find a zip there, including phpMyAdmin 3.4.3.2. And there's also a configuration file, one for Windows and one for Mac OS X. To install phpMyAdmin, first extract the contents of the zip file. I'll extract the contents of the zip file directly to the desktop, by right-clicking and choosing Extract All and then Extract. Now you can use any zip utility you like, WinZip or anything else, because this file is in simple zip format.

Go to the extracted folder which has the same name as the zip file and double-click into it. You'll find another folder there of the same name. And then drag that folder into your document root folder. I'll open a new copy of Windows Explorer. I'll position this one over on the right and the original one over on the left. In the right window, I'll go to C:\apache\htdocs, and then I'll take this folder and drag it over to the right one. I'm done with that copy of Windows Explorer, so I'll close it.

And now for this folder, I'll rename it. I'll press F2 and call it simply phpmyadmin, all lowercase. That'll just make it easier to call from the browser. That's basically it. phpMyAdmin has been installed, but there are a couple of configurations that I recommend. Let's first test it from a browser. I'll go to my browser and I'll type in http://localhost/phpmyadmin.

Notice that I see a listing of files. This is because of a configuration that needs to be made in the Apache web server, not in PHP or in phpMyAdmin. So as I have before, I'm going to open up the httpd.conf file in a text editor. I'll go to C:\apache\conf, and I'll open the file. Now I'm going to search for the string index.html. This takes me to an option named DirectoryIndex.

By default, the Apache server is set up to default to HTML files. I want, instead, to default to PHP files, because that's the kind of file I'm primarily going to be using. So I'll change this from index.html to index.php. I'll save and close the file. I'll return to my Services control panel and restart the server. Now I'll go back to the browser and refresh.

And this time, phpMyAdmin appears, showing me a login screen. I'll type my username and my password. This is the MySQL password that you set up when you installed MySQL in a previous video. I'll click the Go button and that opens up phpMyAdmin. Now, it's also possible to configure phpMyAdmin to open automatically, using your username and password from a configuration file.

Here's how you do that. I'll close all these other windows; I'm pretty much done with those. Then I'll go to the Free Exercise Files, to the phpmyadmin folder again. I've provided a file that configures phpMyAdmin on Windows, using a minimal set of configuration options. I'll open the file in a text editor and show you that there are four options. The first three have to do with the login option. I put in the username and the password explicitly.

Again, this is the username and password for MySQL. And I've set auth_type to a value of config. You should change the password setting to your password. So if you used something else, something more secure, change it here. I've also added an option called AllowUserDropDatabase and set it to a value of true. This will make sure that you as an administrator can drop or delete databases from your MySQL database. By default, phpMyAdmin doesn't let you do that.

Now here's how I'll use this file. I'll go back to Windows Explorer, and I'll copy this file to the clipboard. Then I'll go to C:\apache\htdocs\ phpmyadmin, and I'll paste the file into place, pressing Ctrl+V. Now I need to rename the file. I'll press F2 and I'll change the file name to config.inc.php. That's all you have to do.

Now, I'll make sure that I've closed all my browser windows so that I'm logging in for the first time again. I'll open a new browser window, and once again I'll go to http://localhost/phpmyadmin. If you see the login screen initially, that's okay; press Ctrl+R to refresh the page, and this will reload the application. And this time it loads without you having to type in your username and password again. This sort of configuration is great for local development.

It is, however, not particularly secure, so I only recommend using this minimal configuration on the local development copy of this application. If you want to put phpMyAdmin on your production server, read through the phpMyAdmin documentation for their recommendations on the best settings to use. There's also a file here called config.sample.inc.php, which you can learn a lot from. It has a lot of common configurations that you can use in your own copy of phpMyAdmin.

But with this smaller configuration file that I've provided, you have everything you need to do local development and manage your local databases.

Show transcript

This video is part of

Image for Installing Apache, MySQL, and PHP
Installing Apache, MySQL, and PHP

39 video lessons · 43582 viewers

David Gassner
Author

 
Expand all | Collapse all
  1. 17m 35s
    1. Welcome
      1m 9s
    2. Understanding Apache, MySQL, and PHP
      7m 12s
    3. Using the exercise files
      1m 7s
    4. What's new in this update
      3m 35s
    5. Choosing a software stack
      4m 32s
  2. 30m 18s
    1. Installing Apache HTTP Server 2.4 on Windows
      6m 51s
    2. Installing PHP 5.5 on Windows
      4m 12s
    3. Starting Apache from the command line
      5m 24s
    4. Installing MySQL on Windows
      7m 24s
    5. Installing phpMyAdmin on Windows
      6m 27s
  3. 44m 5s
    1. Activating Apache on Leopard and Snow Leopard
      3m 35s
    2. Activating Apache on Lion
      5m 9s
    3. Activating Apache on Mountain Lion and Mavericks
      4m 57s
    4. Configuring personal site folders on Mountain Lion and Mavericks
      6m 59s
    5. Activating PHP on Mac OS X
      6m 12s
    6. Installing MySQL on Mac OS X
      3m 59s
    7. Setting the root user password
      2m 28s
    8. Installing phpMyAdmin on Mac OS X
      6m 16s
    9. Uninstalling MySQL on Mac OS X
      4m 30s
  4. 14m 35s
    1. Installing WampServer
      6m 25s
    2. Managing WampServer
      2m 2s
    3. Defining directory aliases through WampServer
      2m 55s
    4. Changing software versions with WampServer add-ons
      3m 13s
  5. 10m 58s
    1. Installing MAMP
      4m 6s
    2. Configuring Apache and MySQL server ports
      1m 57s
    3. Managing MAMP
      4m 55s
  6. 29m 3s
    1. Installing XAMPP for Windows
      10m 0s
    2. Managing XAMPP for Windows
      4m 4s
    3. Managing MySQL security through XAMPP for Windows
      2m 40s
    4. Installing XAMPP for Mac OS X
      6m 14s
    5. Managing XAMPP for Mac OS X
      2m 27s
    6. Managing MySQL security through XAMPP
      3m 38s
  7. 13m 20s
    1. Installing BitNami for Windows
      6m 31s
    2. Installing BitNami for Mac OS X
      6m 49s
  8. 18m 49s
    1. Handling port conflicts with Skype on Windows
      2m 37s
    2. Handling other port conflicts on Windows
      5m 19s
    3. Detecting and handling port conflicts on Mac OS X
      6m 26s
    4. Configuring Apache to work with IPv6 on Windows 8
      4m 27s
  9. 31s
    1. Goodbye
      31s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Installing Apache, MySQL, and PHP.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.