MySQL Change password change mamp mysql password

Source: Internet
Author: User
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.