remote database access on remote access disabled server - php

I need a help about remote access.
I want to remote access to database on the web hosting server, but this feature is disabled, also for statik IP.
I was wondering that if it is possible to put a php script on hosting and connect local database manager (like intelijidea datagrip, mysql workbench or whichever is possible) via the link.
I don't know if it is possible or not. Also, can you let me know if there is another way to make true this.
If you can help me, it will be so good for me.
Thank you
Edit: There is a option on intelij "New Data Source from Url" you can see ss from below link, can it help me ?
SS: http://prnt.sc/b53z12

Related

How to access Data from another Server not in the same Network

Hello guys.
In our actual project we got a Microsoft Server accessed via remotehost. On this server we installed xampp ,Microsoft SQL Server and our previously in ObjectPascal developed program.
Then we have a Microsoft SQL Server at our Customers. Then we have our Application, programmed in ObjectPascal, installed, that works with the SQL-Server and is programmed by our company.
Our Web-solution is programmed that it can work with the database like our old programm. Furthermore we would like to use the old program for working locally and our web solution for working remotely. Furthermore the databases on the web-server and at our customer are identical.
Now we have the problem how we can access the data at our Customers SQL Server, without the need of complex configuration at our customers network.
Our thoughts were:
A Web Server at our customer and access the data per AJAX.
Customers Server permanently asking the web-server if it needs data
Doing something similar like 'push up notification' sending from the web-server to our customer.
Maybe synchronising to and from the server?
We are able to get the public IP-Adress from our customer and are able to update it if it change, so that is no problem. The only problem we have is, how we can access the data from our customer. Maybe our solutions go to a completely wrong direction, that's why i am asking you guys.
If you could give me some hints, tips and tricks, maybe a link or a technology name would help me and we would be really gratefull for that.
I thank you for your time reading this!

I want to use PHP to query my current domain SQL server

I have tried everything
Wamp and XAMPP only provide thier own local server and wont let me specify my own server
I have tried IIS and PHP but it doesnt work at all
I would like a simple way to get my SQL server to use PHP in my domain, i dont need it to be remote access yet
Appreciate some hand holding at this point :(
Thanks
Hi thanks for replying
I have explained below what everything meant by using xammp or want iis and php
The server I have is on the Microsoft SQL server management studio
All of the all in one installers will just user local Host and thier own server and database I want to use mine.
Whenever I try using MySQL connection it says it has activley refused connection.
I've added my credentials into the security section on the server. Allowed remote login and specified ports on the server manager program.
Why isn't there a simple step by step program to enable php use on my server and or connect it to my online site..

Remotely managing a mysql database as a limited user

I have a mysql database at my web hosting service, which I would like to access from a C# application on my local computer.
Due to account restrictions, I can't enable remote connections on the database server.
I would like some suggestions on how to execute CRUD operations on the database remotely i.e. from my localhost or any other place which is not on the server itself. The first idea that popped in to my head was to create a PHP REST API on the server and let it do the database work.
Is that the way to go? If so, is there anything similar created already, or do I need to make it from scratch? Perhaps you have other ideas?

Hyperedit, php and mysql

I know this is not a particular php question, but it is to do with accesing php by using mysql when the file is not hosted on the same domain.
For example, im using hyperedit, the php coding tool that allows you to display the results of php in realtime as you code.
However when i try and type my mysql code in, that i know works(i tested it using my servers built in php/html etc creator) i get a error:
Connection refused (trying to connect via tcp://myservername.servername.com
Its definitely not my code, i think instead it is something to do with the fact that the file is not being hosted on the server? I have only tried it in hyperedit but i think the same would occur in other programs too.
I know its not specifically php or coding related, but i thought this is the best place to ask!
If anyone could help me it would be great!
Thanks very much!
This is because your local development machine does not have access to the mysql server in question.
If this is a shared account, you may be able to grant access to your remote machine's IP/hostname through cPanel. If you have direct access to the remote box through the cli, you can do it via a sql GRANT command, like so:
GRANT SELECT ON mydb.* TO myusername#'my_IP' IDENTIFIED BY 'mypassword';
Otherwise, it may be locked down in a shared environment where only machines on the local subnet can access the mysql server (cough, GoDady, cough).
So there's no real answer. Either you have the privileges to give your remote machine access, or you don't. If you don't, consider using another host that does allow you to do what you need.

MySql Insert doesn't work when the website deployed on the host!

I'm using XAPP under windows and my website just working well!
when I deployed it on the host server, it seems to be working normally, but the insert requests to MySql doesn't have any effect, nothing is changing on the database!
Does anyone had this issue before? is there any configuration in MySql to make it accept insert requests? or simply whats the best way to make it work!
[EDIT]
I use PhpMyAdmin, I have two tables members and notifications, I wanna configure permissions so I can Insert into the notifications table, any hint please?
thank you
check the permissions on the database server for the username and password that you are using. It can also be restricted by IP address, among others.
Indeed, the administrator can set read-only privileges for a user or for a specific table.
Check out the "grant" command for more information.
it would be helpful if you could find out the error message that MySQL is returning. check your web server log files. if you are using some shared hosting plan, there should be an option in your host control panel to see the web server log files. PHP is configured in most places so that error messages are stored in web server log files. find out what is actually happening there. it could be permissions most likely.

Categories