mysql - 错误 1045 (28000): 拒绝用户 'powerdns_user'@'localhost' 的访问(使用密码:是)
问题描述
如果我运行mysql -u powerdns_user -p
,我可以输入密码并正常连接:
[root@rdns1 ~]# mysql -u powerdns_user -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 427
Server version: 5.5.68-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
但是,第三方系统无法连接(Can't connect to MySQL server on '192.168.1.1' (111))。然后我尝试在 MySQL 服务器本身上指定 IP,输入密码时失败:
[root@rdns1 ~]# mysql -u powerdns_user -p -h 192.168.1.1 -P 3306
Enter password:
ERROR 1045 (28000): Access denied for user 'powerdns_user'@'tld.myserver.com' (using password: YES)
[root@rdns1 ~]#
192.168.1.1 代表公共 IPv4 地址(出于隐私原因被屏蔽)。
关于我应该在这里做什么的任何想法将不胜感激。
注意:我已经尝试在 MySQL 配置文件中注释 bind-address 并重新启动服务。
解决方案
推荐阅读
- ruby-on-rails - RAILS 版本不一致
- vb.net - 使用定制的画笔在 Picturboxes 中创建填充正方形并从列表中提取
- c# - 在 BLE GATT 配置文件中,字符是否真的被读取或写入?
- flutter - 您不能以 root 身份运行 CocoaPods。(CLAide::Help) 颤振
- docker - 如果相应的服务具有构建上下文部分,则 docker-compose 不会提取图像
- vue.js - (Vue3) [Vue 警告]:在渲染期间访问了属性“...”,但未在实例上定义。在
类绑定时出错 - vim - NeoVim 是否有“:!”的等价物?Vim 中的命令?
- bash - 如何将命令行 awk 脚本(带参数)作为 bash 脚本运行?
- python - 我想获取我当前的元组列表并将它们以两列格式但将第一行作为标题
- python - Python 从父目录的相对导入