gpt4 book ai didi

mysql - 为什么我无法使用phpmyadmin登录MYSQL?

转载 作者:行者123 更新时间:2023-11-29 21:14:26 25 4
gpt4 key购买 nike

我有一个问题。我可以通过 SHELL 或管理员(root 或非 root 用户,等等)登录 MYSQL。但我不能使用 phpmyadmin。 “无法登录 MySQL 服务器”。有什么问题吗?附:密码有效。

最佳答案

第一步:检查3306端口是否打开。如果没有,那么您可以通过在 iptables 中输入来打开端口 3306,或者只需通过以下命令停止此服务(如果不使用任何其他目的)。

$ service iptables stop

第二步:用户应该有权从您的 IP 进行连接,如果没有,则按照以下方式提供权限 -

> grant select,insert,update,delete on your_db.* to your_user@'your_ip' identified by 'your_password';

如果这不是生产服务器,那么最初您可以通过以下命令提供全局完全权限来检查问题-

> grant all privileges on *.* to your_user@'%' identified by 'your_password';

关于mysql - 为什么我无法使用phpmyadmin登录MYSQL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36084886/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com