TablePlus-Linux icon indicating copy to clipboard operation
TablePlus-Linux copied to clipboard

Unable to connect to database on local subnet

Open nicklasring opened this issue 4 years ago • 11 comments

  1. Database version mysqld Ver 5.7.26-29 for debian-linux-gnu on x86_64 (Percona Server (GPL), Release '29', Revision '11ad961')

  2. TablePlus version Alpha Build 38

  3. Linux distro Debian GNU/Linux 10 (buster), 4.19.0-6-amd64

  4. The steps to reproduce this issue: Create a new connection, enter private IP, username,password, database name

Does not work with either MariaDB or MySQL, tested without setting password, dbname and so on. Unable to connect 'Access denied for user @ ip', SSH-tunneling works though.

nicklasring avatar Feb 25 '20 07:02 nicklasring

Hi @nicklasring , the message comes from the database itself, not from TablePlus. Can you double check that it allows you to access (e.g. accessing from another IP)?

Also have you been able to access the database with another client?

thien-do avatar Feb 29 '20 09:02 thien-do

Yes there is no issues connecting to the database from other clients and IP's on the local subnet.

nicklasring avatar Feb 29 '20 14:02 nicklasring

Same problem here tableplus-mysql

I can connect using dbeaver or adminer

pgalilea avatar Sep 08 '20 16:09 pgalilea

Let's hope it is atleast somewhat usable next patch iteration. Stuck with DBEaver until then :)

nicklasring avatar Sep 21 '20 14:09 nicklasring

Hi, same results that @pgalilea. Works fine with dbeaver ! :)

snutij avatar Jul 05 '21 07:07 snutij

Are you using the latest release @snutij ?

huyphams avatar Jul 05 '21 07:07 huyphams

@huyphams, TablePlus Alpha 0.1 - Build 84 to be exact, seems the latest release

snutij avatar Jul 05 '21 08:07 snutij

It appears that if you use localhost on "Database host/socket" TablePlus try to connect using the socket, if you change to 127.0.0.1 or ::1 it connects using sockets.

beppler avatar Nov 12 '22 14:11 beppler

Hi @beppler the native library will try to connect using TCP first then if it fails it fallback to the socket. But if you use the IP, it won't do the fallback.

huyphams avatar Nov 12 '22 14:11 huyphams

It is weird that when I tried to connect using this information, I received an error mentioning the socket: image

Then when I changed it to use ::1, it worked.

beppler avatar Nov 12 '22 14:11 beppler