Saturday, March 31, 2012

Installing PHPmyadmin in Ubuntu / Linux Mint

This tutorial assumes that you have already installed LAMP in your machine.
(If not install it first Installing lamp)

phpMyAdmin is an open source tool written in PHP intended to handle the administration of MySQL with the use of a Browser. It can perform various tasks such as creating, modifying or deleting databases, tables, fields or rows; executing SQL statements; or managing users and permissions.

Here i will tell you how to install phpmyadmin from package.....

  • Go to your terminal window now enter

    • sudo apt-get install phpmyadmin

    • You will be asked to select your web-server select apache 2

    • Once phpMyAdmin is installed point your browser to http://localhost/phpmyadmin to start using it. You should be able to login using any users you've setup in MySQL. If no users have been setup, use admin with no password to login.

    • phpmyadmin is installed now

  • In case if your browser displays an error "404 not found" then try to reinstall your phpmyadmin and configure it to apache using the set of commands given below

    • sudo dpkg-reconfigure -plow phpmyadmin

  • If your browser is still displaying some error message enter these two commands given below to include the phpMyadmin-shipped Apache configuration into Apache

    • sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf

    • sudo /etc/init.d/apache2 reload