The first step to setting up phpMyAdmin is to secure it by creating a root password.
Type http://localhost/phpmyadmin/ in your browser window.
Go to the privileges tab and click edit privileges for root.
Change the password, retype it and then click go.
After completing the above instructions you will notice that phpMyAdmin does not work anymore. It will
display a message stating:
This is to be expected, and nothing to worry about.
To fix this, you will need to edit the PHPmyAdmin configuration file. This file can be found at:
phpmyadmin/config.inc.phpOpen this file in notepad and find the line:
Change the 'config' to 'cookies'
This is the simplest secure authentication method and will display a simple html form when phpMyAdmin is accessed.
You will now need to add your root password between the ’ ’ in the following line:
This password should match the password you set in the privileges section of phpMyAdmin.
Save the configuration file and phpMyAdmin will be functioning as it should be.