简体   繁体   English

升级到MAMP PRO 3.2.0 for Windows,导致#1045-访问被拒绝错误

[英]Upgraded to MAMP PRO 3.2.0 for Windows Causing #1045 - Access denied Error

Tried searching for this issue but doesn't seem to be anything specific to windows operating system. 尝试搜索此问题,但似乎并非Windows操作系统特有的内容。

I have just installed MAMP PRO 3.2 to demo before purchase. 我刚刚购买前安装了MAMP PRO 3.2进行演示。 MAMP has been running fine for over a couple of years now running on windows 8.1. MAMP在Windows 8.1上运行已经有好几年了。

However after installing MAMP PRO I can not see my dev sites and I can not access phpMyAdmin via the MAMP url. 但是,在安装MAMP PRO之后,我看不到我的开发站点,也无法通过MAMP URL访问phpMyAdmin。 It throws an error: 它抛出一个错误:

1045 - Access denied for user 'root'@'localhost' (using password: YES) 1045-用户'root'@'localhost'的访问被拒绝(使用密码:是)

I know MAMP and MAMP PRO look at different locations for the db files so I have copied the mysql folder to the MAMP PRO db location. 我知道MAMP和MAMP PRO在db文件中查找的位置不同,因此我已将mysql文件夹复制到MAMP PRO db位置。 No passwords have been changed. 没有密码已更改。

Anyone come across this issue and have a fix? 有人遇到此问题并已解决吗?

Cheers 干杯

Copying the mysql folder alone might not be sufficient; 仅复制mysql文件夹可能不够。 in the datadir exist many files such as ibdata1 and so on which contain data from InnoDB table types. 在datadir中存在许多文件,例如ibdata1等,其中包含来自InnoDB表类型的数据。 I would completely stop both MySQL instances, back up the MAMP PRO datadir, then completely replace it with the MAMP datadir. 我将完全停止两个MySQL实例,备份MAMP PRO数据目录,然后将其完全替换为MAMP数据目录。 Then start only the MAMP PRO MySQL server; 然后仅启动MAMP PRO MySQL服务器; you don't want to accidentally have two MYSQL server instances running and competing for the same socket or port (or, much worse, using the same datadir). 您不希望意外地使两个MYSQL服务器实例运行并竞争相同的套接字或端口(或者更糟的是,使用相同的datadir)。

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

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