代码之家  ›  专栏  ›  技术社区  ›  soccerway

无法执行到“Dbeaver”的新数据库连接,抛出“无法加载身份验证插件”

  •  0
  • soccerway  · 技术社区  · 6 年前

    无法执行到的新数据库连接 Dbeaver ,扔 Unable to load authentication plugin 'caching_sha2_password' 最初,我设置了一个名为 admin 以及设置MySQl服务器时的密码,这与下面的用户不同 soccertest
    我通过运行以下查询创建了soccertest用户:

    CREATE USER 'soccertest'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'somepassword';
    

    查询正常,0行受影响(0.02秒)

    运行时我可以看到数据库可用 mysql > show databases 从命令提示符

    Server Host: localhost:
    Port: 3306
    Database: soccerreact
    Username : soccertest
    Password:  somepassword
    Local Client: MySQL Server 8.0 
    

    enter image description here enter image description here

    0 回复  |  直到 6 年前
        1
  •  1
  •   Ganesh Chandrasekaran    6 年前

    尝试使用mysql_native_password选项创建。。

    ALTER USER 'soccertest'@'localhost' IDENTIFIED WITH mysql_native_password BY 'somepassword'; 
    
    Grant all privileges on soccerreact.* to soccertest@localhost;