login community faq

Do I need to register an external IP address that I'm connecting from in order to connect to the database from an external database management tool, like SQLYog?

Thanks.

asked Sep 07 '12 at 23:06

Dewey's gravatar image

Dewey
1


For PostgreSQL databases, remote access is enabled by default.

For MySQL databases, simply open a ticket and ask that we enable remote access to one or more of your databases (be sure to include the list of databases you'd like remote access enabled for).

Hope that helps!

answered Sep 07 '12 at 23:10

ryans's gravatar image

ryans ♦♦
28411420

If you're using either MySQL or PostgreSQL, you can connect to the database server remotely by following these instructions from the WebFaction User Guide:

You can access a database remotely by using an SSH tunnel, which establishes a secure connection through which ordinary database traffic can travel. It allows you to work with your database as if it were running on your local computer.

Starting an SSH Tunnel with ssh

  • Open a terminal session.

  • Enter ssh -L 3306:127.0.0.1:3306 username@webXX.webfaction.com where webXX is your machine name (e.g. web57) and press Enter.

Note: For PostgreSQL, substitute 3306 with 5432: ssh -L 5432:127.0.0.1:5432 username@webXX.webfaction.com

  • You may be alerted that the authenticity of the host cannot be established. Enter yes and press Enter.

  • When prompted, enter your password and press Enter.

  • Leave the SSH session open as long as you want to maintain the tunnel.

  • You can now connect to your database at 127.0.0.1, port 3306 using your database name (as username) and password.

  • Enter exit and press Enter to close the connection.

answered Sep 08 '12 at 07:08

turgs's gravatar image

turgs
32

Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×54
×6
×1

Asked: Sep 07 '12 at 23:06

Seen: 669 times

Last updated: Sep 08 '12 at 07:08

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited