Mamp is a common PHP integration environment under OS X system, how to modify mamp login mysql password?
1. Open the terminal
Press control+ space to open Spotlight search Terminal.app, then click on the Black icon of the terminal to open the Terminal command port under Mac. (I'm used to opening it like this, other ways too)
Then enter the following command:
/applications/mamp/library/bin/mysqladmin-u root-p Password
Then enter your username Mac password, enter the MySQL password, and confirm the password. This will change the OK.
2. Go to the Mamp folder configuration file to modify the MySQL password
This time also needs to open:/applications/mamp/bin/phpmyadmin-x.x.x/config.inc.php
This document, find $cfg[' Servers ' [$i] [' password '] This place, modify the password you have just changed.
$cfg [' Servers '] [$i] [' auth_type '] = ' config '; authentication method (config, HTTP or cookie based)?
$cfg [' Servers '] [$i] [' user '] = ' root '; MySQL User
$cfg [' Servers '] [$i] [' password '] = ' 123 ';//Note full-width half-width style, etc.
Following these two steps, the MySQL password for the PHP integrated environment Mamp under MAC is modified correctly.
The above describes the MySQL change password change mamp mysql password, including the content of the MySQL change password, want to be interested in PHP tutorial friends helpful.