Remote MySQL - Shared host to another host - mysql

I have a MySQL database on Bluehost and would like to allow remote access to an application running on a separate server (Dreamhost). Enabling remote access on Bluehost citing the server IP of the shared server on Dreamhost does not work. However when I allow my local dev workstation (office IP address) I can connect remotely just fine to the Bluehost MySQL DB.
Why can I not connect remotely from shared server to shared server but I can just fine from my office workstation? What I am missing here?
Ref: https://my.bluehost.com/hosting/help/89

Related

Django deployment with mysql database on personal server

I am working on deploying my Django project on Linode. My MySQL database that I used during development was on a ubuntu server that I have at my house. This was different that the computer I wrote the program on. In the settings.py file I had the database connections set up and working. On my personal server at home I have updated the UFW to allow the new linode ip address and granted privileges to the ip address also. When I go to run the server on deployed project on linode, I get an error (2003, "Can't connect to MySQL server on 'personal server ip address':3306' (110)").
How do I get the linode server to be able to talk to my personal server's MySQL database?
Iiuc, you are trying to connect from linode to your home server - this is an odd configuration and will be problematic
what you need to do is to allow incoming connections at the router level so that packets are not dropped via port forwarding - I think your router is blocking the incoming DB connection
But like Yevhen said - it is a better approach to have MySql in Linode directly

MySQL connection from web to local server in loop-like network

My internet provider also got hosting services. So I buy a webhosting (for website) and one public IP to my own server (a physical machine in my company). Problem is that I can't connect to MySQL provided with hosting from my server and can't connect to MySQL on my server from website.
When I try from other computer to connect it working properly - I can connect to server database and to website database. I need to reconfigure something to connect from website to my server?
xxx.yyy.220.223 - my server
xxx.yyy.220.224 - website address
xxx.yyy.220.20 - my address on other machines (to connect internet)

Cannot connect to mySql from a lan network computer

I have a MySql Server 5.7 running as service on one computer of a LAN.
My application is installed and running fine on the same computer. I have 'Shared with everyone' set for the directory where my application is located. In the same directory I have put the libmysql.dll and the FDConnectionDefs.ini files.
My application is running fine on that computer. On the other computers on the LAN I created a link to the directory where my application is shared. When I try to run my application from these LAN systems they produce the error message
[FireDac][Phys][mySql] can't connect to mySql server 127.0.0.1 on port 3306... (10061).
All machines are running Windows 10 on 64 bit processors.
Here what i've tried to resolve the problem:
make sure that the user, password and host (%) are the same in mySql Profile and FDConnectionDefs.ini.
I've tried with different users even with root, i've tried to change host (%) to put the IP address of the computer trying to connect in the mySql profile.
I make sure that i have permissions to run my application and mySql and that the port 3306 is open in the Firewall/Kaspersky on each computer of the LAN. But always the same error message.
127.0.0.1 is a special IP address - the "loopback" address that is typically resolved for localhost on most systems. It is a private internal IP address that a computer can use to refer to itself. It has no meaning to other systems on a LAN since every computer will recognize 127.0.0.1 as meaning itself.
This means that when you are running the application on a remote system it will be trying to connect to a MySQL server running locally rather than on a server elsewhere.
You'll need to configure your FireDac components to connect to the actual LAN IP address that belongs to the system hosting the MySQL server. You will probably also need to make sure that your MySQL users are set up to authenticate from an IP other than localhost.

Cannot connect live mysql database in local server, hosted in google cloud hosting

I am unable to connect the live mysql database in local server, hosted in cloud hosting. I am not getting a place to set the host url in Remote MySql as I am not having cPanel. Please give suggestion to set the host url, such that I can set the db settings properly in local and access the live database. Currently my project is not running due to improper db setting.
Live MYSQL database can only be connected if you have proper rights from the CPanel. You must have a static ip on local/Remote machine to connect to the Remote mysql. This permission Can be configured only if you have access to CPanel. Remote database Authenticates the local Machine using IP address of the machine if you want to connect from Local machine you must buy a static IP address and then in CPanel
databases >> Remote MYSQL >> enter image description here
Enter your IP address you will have instant access to MYSQL remote database Until your IP address isn't changed. Now connect by giving IP address of your server as HOST and then the database name with Password you are successfully connected.
If the database is hosted locally on the server , you do not need to enter any URL for it. Just use localhost as the DB host and it should work correctly.

Mysql Connecting remotely

I'm having a problem running a MySQL server that is hosted on another server that isn't the web hosting server. Currently my web server is running on godaddy's free linux hosting. They do offer a MySQL database free, but you can't connect remotely (Sequel Pro OSX program) without paying for an upgraded hosting plan. So temporally, I'm going to host the database on my server at home (XAMPP). Well, whenever I try to connect to the database using the PHP command mysql_connect() I'm getting an error:
"Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 110"
before it was saying 113 (I believe).
Any-who, I tied to use the 'Bind-address' and changed it from 12.0.0.1 to my LAN IP. it didn't work or I didn't do it right. So, any help I can get on this would be awesome.
FYI, I can connect to the database remotely from inside my network using Sequel Pro. But the godaddy server can't connect. Port is open also, so that's not the problem.
Out of the mouth of a godaddy support guy, "Our shared hosting plans do not give you the ability to connect to an external database. If you wish to have this ability, you would need to look into one of our server hosting options."
So, my configuration is correct, it's just godaddy has it blocked. Lame! Thanks everyone for the help.
If you're hosting your database to a home local machine, you should also redirect router "xxx" TCP port to 3306 TCP port of hosting pc.
Remember you must connect to WAN ip on port "xxx".
You can use free dns services like dyndns to map your internet connection to a name (example yourname.dyndns.org)
Redirect a port (default 3306) of your router to 3306 TC port of your hosting pc (internal)
From remote pc connect to yourname.dydns.org:3306 or to port you redirected on router