How to set up password for phpMyAdmin in Wamp Server - phpForm

This tutorial will show you how to create a form with Captcha, Requirement(s): PHP Server, GD Graphics Library
1. Make sure this code is in your C:wamp/apps/phpmyadmin/config.inc.php
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
2. Left-click on the green WAMP icon.
3. Select MySQL -> MySQL Concole
wamp-1.png
4. When you get a prompt 'Enter password:', press Enter.
wamp-2.png
5. When you get a prompt mysql>, type:
set password for root@localhost=PASSWORD('testpass');
wamp-3.png
6. Hit Enter:
wamp-4.png
7. In config.inc.php replace this code
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
with this code:
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'testpass';
8. Restart WAMP