简体   繁体   English

#1045 - 用户 'root'@'localhost' 的访问被拒绝(使用密码:YES)MAMP MySQL 访问被拒绝

[英]#1045 - Access denied for user 'root'@'localhost' (using password: YES) MAMP MySQL access denied

I'm trying to copy a live WordPress site to my local server.我正在尝试将实时 WordPress 站点复制到我的本地服务器。 I went to import the database from the live site through MAMP, and I received an error message when trying to connect to phpMyAdmin:我去通过MAMP从实时站点导入数据库,尝试连接phpMyAdmin时收到错误消息:

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

I have a couple local WP installations running already, and I'm able to access them through the localhost:8888/sitename path just fine.我已经运行了几个本地 WP 安装,我可以通过 localhost:8888/sitename 路径访问它们就好了。

I haven't changed any passwords or messed around with any configurations in phpMyAdmin.我没有更改任何密码或搞乱 phpMyAdmin 中的任何配置。 In fact, it was all working fine just yesterday.事实上,就在昨天,一切都很好。 I had to re-boot my computer because it froze on me this morning, and that's when the issues began.我不得不重新启动我的计算机,因为它今天早上在我身上冻结了,这就是问题开始的时候。

I even went into the config.inc.php file in Applications/MAMP/phpMyAdmin, and the usernames and passwords match what I had originally.我什至进入了 Applications/MAMP/phpMyAdmin 中的 config.inc.php 文件,用户名和密码与我原来的一致。 (It definitely wasn't 'YES') (这绝对不是“是”)

I'm stumped at this point.我在这一点上难住了。 Could anyone help?有人可以帮忙吗?

Can you try resetting the MySQL server password using this guide .您可以尝试使用本指南重置 MySQL 服务器密码吗? Then put the new password in the PHPMyAdmin config?然后把新密码放在 PHPMyAdmin 配置中?

using password: YES Means that you attempted to login using a password, not that the password used is 'YES' Its referring to the different options for logins like certificates etc. using password: YES表示您尝试使用密码登录,而不是使用的密码是 'YES' 它指的是不同的登录选项,如证书等。

尝试在密码中使用单引号,因为双引号内的符号 $ 就像 aphp 变量

change the password to a more basic form.将密码更改为更基本的形式。 for example i had "!@#$]#$%^%&^" i changed it to "mypassword1" and it worked.例如,我有“!@#$]#$%^%&^”,我将其更改为“mypassword1”并且它起作用了。 It is a wordpress issues that it doesn't support weird characters.这是一个 wordpress 问题,它不支持奇怪的字符。

暂无
暂无

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

相关问题 OperationalError:(1045,“拒绝用户'root'@'localhost'的访问(使用密码:是)”) - OperationalError: (1045, “Access denied for user 'root'@'localhost' (using password: YES)”) #1045-用户'root'@'localhost'的访问被拒绝(使用密码:是) - #1045 - Access denied for user 'root'@'localhost' (using password: YES) #1045 - 用户 'root'@'localhost' 的访问被拒绝(使用密码:是) - #1045 - Access denied for user 'root'@'localhost' (using password: YES) Mysql-1045-用户'user'@'localhost'的访问被拒绝(使用密码:是) - Mysql - 1045 - Access denied for user 'user'@'localhost' (using Password: Yes) 使用MAMP拒绝用户'root'@'localhost'的访问(使用密码:是) - Access denied for user 'root'@'localhost' (using password: YES) using MAMP 无法访问 MySQL:错误 1045 (28000):用户 'root'@'localhost' 的访问被拒绝(使用密码:是) - Cannot access MySQL : ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) #1045 - 使用 mysql select 查询导出数据时,用户 'root'@'localhost'(使用密码:YES)拒绝访问 - #1045 - Access denied for user 'root'@'localhost' (using password: YES) while exporting data using mysql select query Mysql 错误:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) - Mysql error: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 带有mysql和django的Travis CI返回(1045,“拒绝用户'root'@'localhost'的访问(使用密码:是)”) - Travis CI with mysql and django returns (1045, “Access denied for user 'root'@'localhost' (using password: YES)”) mysql.connector.errors.ProgrammingError: 1045 (28000): 拒绝用户 'root'@'localhost' 访问(使用密码:YES) - mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM