How to install phpMyAdmin on Ubuntu?

December 19, 2012 By 4 Comments

Recently, I described how to setup a Apache webserver on Ubuntu. One of the easiest ways to manage MySQL databases is using phpMyAdmin. In this post, I will explain how to install phpMyAdmin on Ubuntu systems. phpMyAdmin is a free tool intended to handle the administration of MySQL using the web. There are several good reference materials available, in case you want to learn more about phpMyAdmin and what it can do. Installing phpMyAdmin is one of the first things I do after installing a LAMP server. So without further delay, let us see how to install phpMyAdmin on Ubuntu.

phpMyAdmin Features

  • Intuitive web interface
  • Support for most MySQL features:
    • browse and drop databases, tables, views, fields and indexes
    • create, copy, drop, rename and alter databases, tables, fields and indexes
    • maintenance server, databases and tables, with proposals on server configuration
    • execute, edit and bookmark any SQL-statement, even batch-queries
    • manage MySQL users and privileges
    • manage stored procedures and triggers
  • Import data from CSV and SQL
  • Export data to various formats: CSV, SQL, XML, PDF, ISO/IEC 26300 – OpenDocument Text and Spreadsheet, Word, LATEX and others
  • Administering multiple servers
  • Creating PDF graphics of your database layout
  • Creating complex queries using Query-by-example (QBE)
  • Searching globally in a database or a subset of it
  • Transforming stored data into any format using a set of predefined functions, like displaying BLOB-data as image or download-link
    And much more…

Install phpMyAdmin

phpMyAdmin is available in Ubuntu repositories. To install phpMyAdmin on Ubuntu, all you have to do is type in the following command:

sudo apt-get install phpmyadmin

Few other required packages will be installed along with phpMyAdmin. During installation, you will be asked for the Webserver for which you would like to configure phpMyAdmin. If you have a LAMP server, choose Apache and then press OK.

Install phpMyAdmin

Choose your Webserver

Next, you will be asked if you would like to configure phpMyAdmin database. Say “Yes” and proceed.

Install phpMyAdmin

Configure phpMyAdmin Database

If you said “Yes” above and continue to install phpMyAdmin. You will be asked for your MySQL administrator password. Type it in and press OK.

Install phpMyAdmin

Type in MySQL Administrator Password

Installation is now done.

Accessing phpMyAdmin

phpMyAdmin is web-based. If you are on the system that is running phpMyAdmin then you can access it by going to:


http://localhost/phpmyadmin

If you are in an internal network you can use:


http://192.168.X.X/phpmyadmin

Replace 192.168.X.X with the network IP address of your server. If you followed my previous guide to install Apache webserver, and already have a working website, you can use one of the two commands:


http://X.X.X.X/phpmyadmin

or


http://domain.com/phpmyadmin

X.X.X.X is your server’s external IP address. If you server is behind a router then you will have to enable port forwarding for the last two options to work from the internet.

Recommended Reading:

Login using your MySQL administrator username and password to access all databases or you could use username and password for access to only specific databases.

install phpMyAdmin

phpMyAdmin Login

If you see the following warning/error: Additional features for working with linked tables have been deactivated, check this post for a fix.

So go head install phpMyAdmin and simplify your database administration!

Free E-Book: Introduction to Linux - A Hands on Guide
Last Updated: May 5, 2013

  • Don't miss out!

 

You may also like:

About Anand Subramanian

Anand is a self-learned computer enthusiast, a part-time blogger, and a Food Scientist by career. He has been blogging since 2010 on Linux, Ubuntu, Home/Media/File Servers, XBMC, and related HOW-TOs (read more).

Comments Policy: You are responsible for what you write. Be nice, helpful, and constructive. Please, use your real name and limit the the number of links in your comment. Review our Comments Policy for full details.

Trackbacks

  1. [...] in case you want to learn more about phpMyAdmin and what it can do. Installing phpMyAdmin, as described in this post, is one of the first things I do after installing a LAMP [...]

  2. [...] in case you want to learn more about phpMyAdmin and what it can do. Recently, I described how to install phpMyAdmin in Ubuntu. In this post, I will provide a few phpMyAdmin tweaks to your liking. If find that with a little [...]

  3. [...] improve security but also maximize the possibilities of PHP. If you have not read my other posts, How to install phpMyAdmin on Ubuntu? and 10 easy phpMyAdmin tweaks to simplify MySQL administration, you may do so in addition to [...]

  4. [...] security will also maximize the possibilities of PHP. If you have not read my other posts, How to install phpMyAdmin on Ubuntu? and 10 easy phpMyAdmin tweaks to simplify MySQL administration, you may do so in addition to [...]

Speak Your Mind

*

About LinuXplained Pages Sign Up for Email Updates
LinuXplained is a free Linux home server resource site. LinuXplained was originally founded in April 2010 by Anand Subramanian. The main goal of this site is to provide quality tutorials, news, and reviews on Linux Home Servers, HTPC, Media Players, Windows, Android, and WordPress Blogging that allow Linux home server enthusiasts to maximize their servers potential and use.

© 2013 LinuXplained.
All Rights Reservered.

Sites We Like: KHub.info
About LinuXplained
Audience & Statistics
Advertise Here
Write for LinuXplained
Blogroll
Contact Us
After submission please click the confirmation link in your email to complete subscription.
Powered by: Amazon, AstraWeb, VigLink, StudioPress, and Ninja Affiliate
MiniSuit Executive Wallet Case for Samsung Galaxy S4
Get It See All Deals