AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1090773
Accepted
LosmiNCL
LosmiNCL
Asked: 2022-01-22 13:00:45 +0800 CST2022-01-22 13:00:45 +0800 CST 2022-01-22 13:00:45 +0800 CST

无法在 Centos、Google Cloud 上登录 phpMyAdmin

  • 772

在我的 MySQL 数据库中,我创建了两个用户,一个普通用户(拥有一个数据库的权限)和一个超级用户。当我想通过这些帐户中的任何一个登录到 phpMyAdmin 时,我收到“无法登录到 MySQL 服务器”错误。(我正在远程访问)

里面<Directory /usr/share/phpMyAdmin/> in my /etc/httpd/conf.d/phpMyAdmin.conf file:

<Directory /usr/share/phpMyAdmin/>
    AddDefaultCharset UTF-8

   <IfModule mod_authz_core.c>
    # Apache 2.4
   <RequireAny>
      Require all granted
      Require ip 127.0.0.1
      Require ip ::1
   </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Allow from All
     Allow from 127.0.0.1
     Allow from ::1
   </IfModule>
</Directory>

我还在config.inc.php文件中为我的超级管理员提供了用户名和密码。我错过了什么?我应该对谷歌防火墙做些什么吗?我还没有为 MySQL 配置防火墙规则,我现在应该这样做吗?

编辑:我也尝试过这个答案:Can't login to phpMyAdmin

$cfg['blowfish_secret'] = 'myPassword'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

还是行不通

centos7
  • 0 0 个回答
  • 173 Views

0 个回答

  • Voted
  1. Best Answer
    LosmiNCL
    2022-01-25T14:07:54+08:002022-01-25T14:07:54+08:00

    答案可以在这篇文章的评论中找到:https ://www.digitalocean.com/community/questions/cannot-log-in-to-the-mysql-server-without-code-using-phpmyadmin-on- centos7

    “某些应用程序在缓存 _sha2 _password 方法时遇到问题。上面设置了使用本机的凭据。” 这可能发生在 MySQL 8 上。

    登录数据库后,您可以尝试以下操作:

     ALTER USER myUsername IDENTIFIED WITH mysql_native_password BY '123TheBestPassword';
    
    • 1

相关问题

  • CentOS 7 - 2024 年报废,然后呢

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve