New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect to the localhost using TCP #1958
Comments
I thought we fixed this ~3 years ago? #765 |
There are different error messages for 127.0.0.1 and localhost 2024-01-22.11.30.05.mov |
It may be possible it's falling back on the socket if it cannot connect via TCP/IP? |
Check if you have skip-networking option set on
W dniu czw., 22.02.2024 o 09:26 Andrew Larsen ***@***.***>
napisał(a):
… Same here
When using the following command in terminal: mysql -uroot
It connects as expected, but when I attempt to use Sequel Ace it doesn't
work. Weird is that it worked earlier today, after I restarted mysql
service (brew service restart mysql) it stopped working in Sequel Ace but
not in terminal.
Screenshot.2024-02-22.at.09.25.10.png (view on web)
<https://github.com/Sequel-Ace/Sequel-Ace/assets/7068614/93fbdb88-0e66-4d35-af45-d9bdff0b7f39>
—
Reply to this email directly, view it on GitHub
<#1958 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEQPFSS5OFF3WV4VKQ7GR3YU36MBAVCNFSM6AAAAABCEB2FLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJYHEZTMNBYGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Description
I'm instructed to use host
localhost
and port53322
but not a socket. As I know, 127.0.0.1 and localhost aren't the same from the MySQL GRANT permissions perspective.Provided MySQL command is
mysql --user myuser --database mydatabase --port 53322 --host localhost --protocol TCP
But using host
localhost
it will try to connect using socket, even if TCP/IP tab is used. MySQL cli provides an--protocol TCP
option to force the use of TCP/IP instead of a socket. It seems it's impossible to achieve that in Sequel Ace.Steps To Reproduce
myuser
with the only hostlocalhost
localhost
as hostname in the Sequel Ace TCP/IP connection tabExpected Behaviour
I expect it will use TCP/IP host:port connection, because it's TCP/IP connection tab after all, and for socket connection, there is another tab.
Additional context
Why it's important for me now, it's because Teleport tunnel works that way. To securely use a remote database server and not introduce it to the world I need to use Teleport proxy. A command can be something like that:
tsh proxy db --db-user=myuser --tunnel --port 53322 db-service-name
and its result will be the following
I believe it will be convenient to always use the TCP protocol while using the TCP/IP tab, which is expected, and get rid of that always annoying MySQL magic treating of localhost. And keep the socket tab for those who explicitly want to use sockets.
The text was updated successfully, but these errors were encountered: