简体   繁体   English

MAMP PRO 的用户名和密码

[英]Username and password for MAMP PRO

I need help with the proper sequence and locations for changing the root username and password in MAMP PRO, not MAMP, I can get that to work fine.我需要有关在 MAMP PRO(而不是 MAMP)中更改 root 用户名和密码的正确顺序和位置的帮助,我可以让它正常工作。

I was using MAMP (free), and had no problem updating the username and password from root to a username and password, and it worked fine to log into phpmyadmin.我使用的是 MAMP(免费),将用户名和密码从 root 更新为用户名和密码没有问题,并且可以正常登录 phpmyadmin。 I upgraded to MAMP PRO for more host capabilities and have been having trouble with this error.我升级到 MAMP PRO 以获得更多主机功能,但一直遇到此错误的问题。 i know it is something to do with the password, but can't figure it out.我知道这与密码有关,但无法弄清楚。

mysqli_real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) mysqli_real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (使用密码: YES)

here is what i tried: i uninstalled MAMP and MAMP PRO and deleted the file folders in my C drive.这是我尝试过的:我卸载了 MAMP 和 MAMP PRO 并删除了 C 驱动器中的文件夹。 then i started a fresh install.然后我开始全新安装。

it installed fine and i could log into phpmyadmin with the generic root settings.它安装得很好,我可以使用通用根设置登录 phpmyadmin。 from there i changed the username and password in the root account.从那里我更改了root帐户中的用户名和密码。

Then i went to the MAMP PRO folder to look for the configure.inc.php file to update the username and password, but it is not in there.然后我去 MAMP PRO 文件夹查找 configure.inc.php 文件以更新用户名和密码,但它不在其中。 there is no bin or phpmyadmin folders in it.其中没有 bin 或 phpmyadmin 文件夹。 there is in the MAMP folder, but it does not help if i change anything in there.在 MAMP 文件夹中有,但如果我在其中更改任何内容也无济于事。

so, after that i cannot get back into phpmyadmin in MAMP PRO unless i uninstall it, delete the file folders and reinstall again.所以,在那之后我无法回到 MAMP PRO 中的 phpmyadmin,除非我卸载它,删除文件夹并重新安装。 maybe i need to have both mamp and mamp pro installed, but i tried that with my first install of mamp pro and it didn't work.也许我需要同时安装 mamp 和 mamp pro,但我在第一次安装 mamp pro 时尝试过,但没有成功。 i am sure this will get some down votes, but i just need some help at this point and MAMP customer service has not yet responded.我相信这会得到一些反对票,但我现在只需要一些帮助,MAMP 客户服务尚未回复。

thank you!谢谢你!

well, i figured it out and will put the answer here for anyone else with this problem in the future.好吧,我想通了,并将在这里为将来遇到此问题的其他人提供答案。 in MAMP Pro you stop the server and then click on the mysql client on the left in hosts and a window pops up so you can change the password.在 MAMP Pro 中,您停止服务器,然后单击主机左侧的 mysql 客户端,然后弹出 window 以便您可以更改密码。 i could not change the root username, but just added a new user with my name and my password, so all the hosts are protected and not giving me the error.我无法更改 root 用户名,但只是添加了一个带有我的姓名和密码的新用户,因此所有主机都受到保护并且不会给我错误。 i was then easily able to add it to valentina studios.然后我可以轻松地将它添加到 valentina 工作室。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM