AWS Community Day CPH - Three problems of Terraform
Setting The Password In Wamps
1. Setting the password in WAMPS
1. In phpMyAdmin windows, if this is the first time password setup, you will see the
warning that MySQL has default user "root" with no password, and that's what we
try to correct here by selecting Privileges (wamp2f2.jpg or wamp2c2.jpg) .
2. In the next windows, you should have user "root", host is "localhost" and password
is "no"; click on the icon in the end of the line to edit privilege for user "root"
(wamp2f3.jpg or wamp2c3.jpg)
3. Note: If you have more than one user "root", do not panic, and keep follow this
guide and you will eventually see the section to setup password for other user "root"
4. In the next windows, scroll down to section Change Password to input your desire
password twice, then click Go right under that table (wamp2f4.jpg or wamp2c4.jpg)
5. After click Go, you will get the windows with confirmation message that MySQL just
set the password for user "root" (wamp2f5.jpg or wamp2c5.jpg)
6. Don't close the windows yet, just minimize it and open the file config.inc.php in
folder C:/wamp/apps/phpmyadmin3.1.1 (wamp2f6.jpg or wamp2c6.jpg)
7. Note: If you have different phpMyAdmin version, select your correct version
8. If using older phpMyAdmin version, the file config.inc.php greets you with the
warning message "Do not edit..." :‐( (wamp2f7.jpg or wamp2c7.jpg). It only warns
people don't know what to do, but you follows this guide and have nothing to worry
about
9. Next step is to add the codes below (wamp2f8.jpg or wamp2c8.jpg); if using older
phpMyAdmin version, just scroll down and search for it
$cfg['blowfish_secret'] = '';
10. Now, make up and input your desire secret passphase which should NOT be the
same with the password that put in phpMyAdmin in step 4 (wamp2f9.jpg or
wamp2c9.jpg)
11. This step is to scroll down and find this codes (wamp2f10.jpg or wamp2c10.jpg)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or
cookie based)?
12. Now, change the authentication "config" to "cookie" which will shows the Login
windows everytime a user connects to phpMyAdmin (wamp2f11.jpg or
wamp2c11.jpg)
13. Option: If you don't use phpMyAdmin so often, you should perform this extra step
which has a benefit to open config.inc.php to retrieve forgotten password;
otherwise, skip this step for more security, especially if your computer has more
than one user
14. Scroll down and find this codes below (wamp2f12.jpg or wamp2c12.jpg), and input
between single quote the password that you've used in phpMyAdmin in step 4
2. $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
15. Now is the time to save all open files, close all open browsers, restart wamp server
by right click on wamp tray icon to access Secondary Menu and select Exit
(wamp2f13.jpg or wamp2c13.jpg)
16. After wamp restart, left click on wamp tray icon to access Main Menu and select
phpMyAdmin to pop up the Login page for phpMyAdmin, which you can login with
user "root" and the password you just setup in step 4(wamp2f14.jpg or
wamp2c14.jpg)
17. After login, you might see warning message "Cannot load mcrypt extension..."
(wamp2f15.jpg or wamp2c15.jpg); then, left click on wamp tray icon and select PHP,
then PHP Extensions, then scroll down to click on php_mcrypt (wamp2f16.jpg or
wamp2c16.jpg).
18. Note: If you have more than one user "root", repeat step 1 to step 5 to set password
for each and all other user "root"
19. Congratulation!!! You just finish setup password for Wamp ;‐)