MAMP changes the database password

MAMP is a development kit similar to XAMPP, packaged with apache / nginx, php, mysql, out of the box, the ordinary version is free, and daily development is enough.

Personally feel that it is easier to use than xampp, more friendly under Mac, lightweight, simple interface, high speed and stable.

Official website  https://www.mamp.info/en/

The following operation to modify the database password is for MAMP Mac version

Generally, the MAMP mysql executable file is installed in / Applications / MAMP / Library / bin /, the database default user name is root, and the default password is root.

Execute through the terminal command line

  • If the database does not have a password / Applications / MAMP / Library / bin / mysqladmin -u root password your password
  • If the database has set a password / Applications / MAMP / Library / bin / mysqladmin -u root -p password new password

Then the console allows you to enter the old password or the initial password, which completes the password modification.

Finally, do n’t forget, at this time, the password saved in the phpMyadmin configuration file should also be changed synchronously. The configuration file is in /Applications/MAMP/bin/phpMyAdmin/config.inc.php

 

Published 14 original articles · Like8 · Visit 70,000+

Guess you like

Origin blog.csdn.net/wm20000/article/details/86319302