Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I connect to NearlyFreeSpeech-hosted MySQL database remotely?

What URL/hostname/IP address to I use to connect to a MySQL database hosted by NearlyFreeSpeech? What port?

I want to use Navicat or a similar program to do this. I know the username and password.

like image 318
Generic_User_ID Avatar asked Sep 17 '25 09:09

Generic_User_ID


1 Answers

The key is to use SSH (Secure Shell) using your database software - most hosting services do NOT allow unsecured access, including NearlyFreeSpeech, so SSH is the way to go.

In your database software, you should see multiple options to login via "standard", "socket", and "SSH".

Your SSH details can be found in your NFS "Site" Tab, under "FTP/SFTP/SSH Information". Don't forget to check to see if SSH is enabled, and make sure you note that the SSH loginID includes an "_domainname" following your usual non-SSH login.

Example connection:

MySQL Host: example.db  
Username: john123  
Password: *******  
Database: (optional - leave blank)  
Port: (optional- default 3306)

SSH Host: ssh.phx.nearlyfreespeech.net    
SSH User: John123_mygreatsite   
SSH Password: *******  
SSH Port: (optional - leave blank)    
like image 145
Als14 Avatar answered Sep 19 '25 03:09

Als14