Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7404759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:18:05+00:00 2026-05-29T05:18:05+00:00

I can connect to my db with Sequel Pro just fine, but I can’t

  • 0

I can connect to my db with Sequel Pro just fine, but I can’t through the command line. I’ve followed their instructions here: http://www.sequelpro.com/docs/Connecting_to_a_MySQL_Server_on_a_Remote_Host#Do_I_need_to_use_the_Terminal_for_SSH_connections.3F

In their command I substitute the following from the connection window and SSH tab in Sequel Pro:

ssh -L 1234:mysqlhost:3306 sshuser@sshhost

mysqlhost => MySQL Host
sshuser => SSH User
sshhost => SSH Host

And when prompted for a password, I use the one from “SSH Password”

I’m not sure what Sequel Pro is doing differently behind the scenes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:18:06+00:00Added an answer on May 29, 2026 at 5:18 am

    That instruction from the Sequel Pro docs isn’t quite the whole story; it’s just telling you how to set up a tunnel. You need a second step to actually use it to connect to a MySQL server.

    The actual process is two steps:

    1. Create the tunnel.

      ssh -N -L 1234:mysqlhost:3306 sshuser@sshhost
      

      The -N that I added just tells ssh that you’re only setting up a tunnel and you don’t want to start a shell on sshhost. Running this command will look like it does nothing: that’s what it should look like.

      As long as the ssh command is running, connections to port 1234 on your local machine will be tunneled through sshhost to port 3306 (the MySQL port) on mysqlhost.

    2. Connect to MySQL using the tunnel.

      You now need to run the mysql command line client. The ssh command you just ran is still running, so the easiest thing for you to do is open a new Terminal window or tab, and run:

      mysql -P 1234 -u mysqluser -p
      

      to connect to your database. The -P 1234 part is the only out-of-the-ordinary part of this command, and it just makes the mysql client connect using the port you set up in the first command to do the tunneling.

    When you’re done with the tunnel, either close the original Terminal window or use Ctrl-C to stop the ssh process.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can connect my Node app to Redis just fine without a password, but
I can connect socket.io through this url: localhost/socket.io/socket.io.js But I need minified version! localhost/socket.io/socket.io.MIN.js
I'm running Sequel Pro 0.9.9.1 and can connect to a remote mySQL (v 14.14)
There are several Databases that PDO can connect to but they all require a
can connect to facebook and twitter, but how do i connect a normal django
i know i can connect multiple slots to the same signal. but Can I
I have a WCF webservice I can connect to it via basicHttp, but not
I can connect to MySQL database from my WinForms app fine. The question is
I can connect to my Rtsp server using pre made software, but with the
I can connect to Salesforce using classic ASP on my x86 computer, but when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.