PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, March 16, 2022

[FIXED] How to update remote server application from local server application

 March 16, 2022     lamp, mysql, php, unix, wamp     No comments   

Issue

I have a PHP/MySQL application running with WAMP on a local server. This application contains sensitive and confidential data that can only be accessed from devices on the network in the office.

However, this application generates reports that clients should be able to access from the web from an entirely separate application running on a LAMP stack.

Currently, I have the reports transferring via SFTP from the local server to the web based server.

My question is, how can I update the remote database from the local application securely, and so that the MySQL db can only be modified by the localhost of the remote application and the server running the local application?

I'm thinking about creating some kind of API that only accepts data from the IP of the local app, but I do not know the best practices for this, nor do I know how to start going about it.


Solution

MySQL provides a USER > FROM HOST > PER DATABASE > PER TABLE > PER COLUMN grant system.

Meaning that you can specify which user can connect from which host to which database,... Make usage of the FROM HOST feature.



Answered By - hek2mgl
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing