Welcome Guest | Login

how do I connect to MYSQL remotely?

Hi,

I have a virtual dedicated account. I would like to connect to my mysql databases through  cocoamysql on osx. What do I have to do on my server to allow this?

David Kern

2008-10-13 05:30 AM

Please verify the following link to download and install cocoamysql.
------http://sourceforge.net/projects/cocoamysql/
http://www.hoboes.com/NetLife/MySQL/Installation.html
------

We can do this for you, if you can enable software support package for your VPS account via account center.

2008-10-13 06:09 AM

Regards,
Rahul
Hi Rahul,

Actually I already have cocoamysql. The problem is that it won't connect to the mysql server on my virtual server. I can't connect with the command line either. I tried:

mysql -h 'my ip address' -u myusername -pmypassword


but it just hangs.


same thing when i try to connect with cocoamysql.  It just hangs.

I thought maybe i need to open a port on the firewall but I dont know how.

2008-10-13 07:46 AM

Hello,

Ok, I have understood the issue. Are you facing this issue for the database named "piecemaker". Also I believe the other database named "test" is working fine (I.E) You can connect to the DataBase remotely from your local end. Please confirm the status from your end. We will fix this for you.

2008-10-13 08:03 AM

Regards,
Rahul
Sorry, but I can't connect at all. I tried this at the terminal

mysql -h [ip address] -u myusername -p

it just hangs. I don't even get an access denied message.

2008-10-13 08:59 AM

Ok.. The issue was because the port 3306 was not opened in the server firewall. I have opened it now. Also I have added grant-privileges to the mysql user (details was available in the database.yml file).

Now you will be able to connect to your database remotely. Please check and confirm status from your end now.

2008-10-13 09:29 AM

Regards,
Rahul
Thanks Rahul It works.

2008-10-13 02:08 PM

Hello-

I am trying to do the same this - access my MySQL db from my laptop.

i see above, the unix command is:

mysql -h [ip address] -u myusername -p

but what is the IP address?  how do I find mine?

Thanks!

2008-11-15 05:56 PM

Hi Jetson,

mysql -h [ip address] -u myusername -p

ip address --- IP assigned to your account or the IP address to which your domain is pointing.

You can confirm it from your account center >>  Account Details.


2008-11-15 06:13 PM


I've got port 3306 open and all the permissions seem to be right yet still can't get a remote connection.

Any more suggestions?

2008-12-02 05:55 PM

Hi Lbau - Since you are using webmin as your control panel, for remote access of Mysql Databases :

Webmin >> Servers >> MySQL Database Server >> Edit Hosts Permissions >>

Create the username you want to use to connect to your database with, set the HOSTS to ANY and then grant the permissions you want.

2008-12-02 07:43 PM

HostingRails Support
Already done, my friend.  Still no dice.

2008-12-02 07:53 PM

Hi - Could you please post a ticket to the support with your database details so that we can check this at our end. Thank you

2008-12-02 07:57 PM

HostingRails Support

Hello Guest! In order to post you must be an active client with us, please log in or sign up.