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

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)

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

Setup SSL on remote MySQL server for mobile app

I am new to setting up SSL certificates on servers and would need some help to secure a MySQL database connection. I have a simple mobile app (client) which needs to connect to a remote MySQL database (server) connection. I am using AWS EC2 for the remote server and I have installed Let's Encrypt SSL certificates on a domain that I am hosting there. The machine runs on Ubuntu 18.04 and NGINX.
The same server also runs a MySQL database and I want to connect to it securely using a mobile app client. How can I encrypt the connection between the mobile app aclient and the MySQL database server?
I do have a static ip address for the database server but I am unable to install SSL certificates on the ip address directly. Only the domain name has an associated SSL certificate.
I did some digging around but was unable to find anything that serves my purpose. Any suggestion or reference to an article would greatly help.
This article provides a detailed step by step procedure for securing the connection between a remote MySQL database server and a client.
Securing a remote MySQL database server connection

Remote MySQL - Shared host to another host

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

MySql Remote accessing in php

I want to connect mysql database remotely in detail i want to make application like this my database is only in hosted server and my php pages are always offline means in client pc. it is possible or not. if yes then how it possible. i am using godaddy hosting server.
Thanks
It is possible, but here are some limitations:
Client PC has an internet service (Static IP is preferred)
Remote access service is only available on paid hosting plans
Connection do not support secured connections (SSL)
Steps:
Log in to your Account Manager.
Click Web Hosting.
Next to the cPanel account you want to use, click Launch.
In the Databases section, click Remote MySQL.
In the Host field, enter the IP address (Your Client PC IP).
Click Add Host.
Reference:
Enabling Remote MySQL Management in cPanel
Why connect remotely to hosting databases?
Connecting Remotely to Shared Hosting Databases

Access to mysql database in the Server from client PC

I have a database in my localhost(Use WAMP server).I have created a WiFi network among several laptops.There is a C# application on client laptop which need to use the database in server(This application uses the data in the database).How do I do this?
(The client laptop can connect to my wamp server through browser successfully with address
192.168.16.2).
You need to do three things
Ensure that the application has the correct details to make the connection i.e username, password, database and hostname
Ensure that the server is using TCP/IP protocol (perhaps SSL) and that the firewall will not prevent incomming connections.
Ensure that the database user can connect from the remote machine. This can be achieved using the Workbench application.