[MacPorts] #21437: The MAMP howto doesn't match the sample phpMyAdmin config file
MacPorts
noreply at macports.org
Fri Nov 23 22:19:50 PST 2012
#21437: The MAMP howto doesn't match the sample phpMyAdmin config file
-------------------------+--------------------------------
Reporter: steve404@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: wiki | Version: 1.8.0
Resolution: | Keywords:
Port: phpmyadmin |
-------------------------+--------------------------------
Changes (by ryandesign@…):
* owner: => macports-tickets@…
Old 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
New description:
Hello,
I'm following instructions at the below link to setup Apache, MySQL and
PHP.
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
--
--
Ticket URL: <https://trac.macports.org/ticket/21437#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list