Opened 15 years ago
Last modified 7 years ago
#21437 closed defect
unable to setup phpMyAdmin — at Initial Version
Reported by: | steve404@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | wiki | Version: | 1.8.0 |
Keywords: | Cc: | ||
Port: | phpmyadmin |
Description
Hello,
I'm following instructions at the below link to setup Apache, MySQL and PHP. https://trac.macports.org/wiki/howto/MAMP
At the end of the page it describes how to setup phpMyAdmin:
Finally, you need to set up the phpMyAdmin configuration to access mySQL. First, set up the config file: cd /opt/local/www/phpmyadmin/ cp config.sample.inc.php config.inc.php This will create a file config.inc.php in the phpMyAdmin folder. Edit that file, and locate the lines: $cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)? $cfg['Servers'][$i]['user'] = 'root'; // MySQL user $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed // with 'config' auth_type) Where ' ' is an empty password; fill it with your MySQL root password. You can either change the 'auth_type' from 'config' to 'cookie' or 'httpd', or alternatively provide the password you selected for the root user in the 'password' option.
I'm able to create file config.inc.php, however when I search for the section to define the password, I don't have that section of code.
How do I set the password? Do I just add those 3 or 4 lines of code?
-Steve
Note: See
TracTickets for help on using
tickets.