无法使用dbeaver连接到localhost上的mariadb

4ktjp1zp  于 2021-06-21  发布在  Mysql
关注(0)|答案(1)|浏览(683)

我刚安装了 mariadb 在ubuntu上

mysql Ver 15.1 Distrib 10.0.31-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

我可以通过本地web服务器使用php连接到db,也可以通过命令行连接。但是,我无法让dbeaver从gui连接。例如,我使用mariadb驱动程序建立了一个连接 localhost 左舷 3306root 我从cli使用的user/pass。
我得到这个错误:

Could not connect to address=(host=localhost)(port=3306)(type=master) : Connection refused (Connection refused)

你知道这是不是 my.cnf 需要更改的设置,或者dbeaver中是否缺少其他设置?

t9aqgxwy

t9aqgxwy1#

这个答案有助于:https://serverfault.com/questions/808977/mariadb-refuses-remote-connections
但特别是指出您可能需要重新启动计算机的注解—正在运行 sudo /etc/init.d/mysql restart 显示服务器已重新启动,但在我重新启动计算机之前,更改的ip绑定显然没有得到刷新。
我换了台词: bind-address = 127.0.0.1bind-address = ::

相关问题