config.inc.php file for phpMyAdmin
Posted on 2008-11-19
I'm working my way through a book in order to try and set up a php/apache/mysql testing environment on my mac computer. I've downloaded MAMP to get it going (even though the book uses separate php mysql etc components, as opposed to MAMP).
The book is saying that phpMyAdmin uses a text file to store all the configuration
details and that since version 2.7.0, you no longer edit the phpMyAdmin configuration file
but store your personal details in a new file, which should be named
After I installed MAMP I did a search on my computer for the config.inc.php file and found it at this location:
Applications > MAMP > bin > phpMyAdmin > config.inc.php
When I opened this file, I noticed that it has over 700 lines of code and information. I'm a bit confused because the book provides instructions on how to create this file manually. It says to type the following code into a blank document:
$i = 1;
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['password'] = 'mysqlRootPassword';
Then to save the file as config.inc.php in the main phpMyAdmin folder. I don't understand why I have to create this new config file with just that bit of code when this file already exists but with a whole lot more code and information.
Can someone explain how this works?